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

https://docs.phalconphp.com/en/latest/api/Phalcon_Filter.html#methods

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



36.4k

Really, how to convert a string to uppercase?



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