Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

uppercase or lowercase

Hi I want to know how to change the data to uppercase or lowercase, remove all characters or letters or digits, I was reading

but someone can help me with an example of a case-insensitive in a form with phtml

Data where? In what context?

Also, sanitization will only remove invalid characters not replace them


Really, how to convert a string to uppercase?

edited Jul '16
$str = 'FooBar';
$upper = mb_strtoupper($str);
echo $upper; // FOOBAR