|
Size: | 9761 |
Storage flags: | no_autoload,compress/gzip (30%) |
This filter modifies a given string such that ‘words with separators’ are converted to ‘WordsWithSeparators’.
The following options are supported for Zend\Filter\Word\SeparatorToCamelCase:
A basic example of usage is below:
1 2 3 4 | $filter = new Zend\Filter\Word\SeparatorToCamelCase(':');
// or new Zend\Filter\Word\SeparatorToCamelCase(array('separator' => ':'));
print $filter->filter('this:is:my:content');
|
The above example returns ‘ThisIsMyContent’.
1 2 3 | $filter = new Zend\Filter\Word\SeparatorToCamelCase();
print $filter->filter('this is my content');
|
The above example returns ‘ThisIsMyContent’.
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.