|
Size: | 9868 |
Storage flags: | no_autoload,compress/gzip (30%) |
This filter converts any input to be uppercased.
The following options are supported for Zend\Filter\StringToUpper:
This is a basic example for using the StringToUpper filter:
1 2 3 4 | $filter = new Zend\Filter\StringToUpper();
print $filter->filter('Sample');
// returns "SAMPLE"
|
Like the StringToLower filter, this filter handles only characters from the actual locale of your server. Using different character sets works the same as with StringToLower.
1 2 3 4 | $filter = new Zend\Filter\StringToUpper(array('encoding' => 'UTF-8'));
// or do this afterwards
$filter->setEncoding('ISO-8859-1');
|
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.