|
Size: | 9751 |
Storage flags: | no_autoload,compress/gzip (30%) |
This filter modifies a given string such that ‘CamelCaseWords’ are converted to ‘Camel Case Words’.
The following options are supported for Zend\Filter\Word\CamelCaseToSeparator:
A basic example of usage is below:
1 2 3 4 | $filter = new Zend\Filter\Word\CamelCaseToSeparator(':');
// or new Zend\Filter\Word\CamelCaseToSeparator(array('separator' => ':'));
print $filter->filter('ThisIsMyContent');
|
The above example returns ‘This:Is:My:Content’.
1 2 3 | $filter = new Zend\Filter\Word\CamelCaseToSeparator();
print $filter->filter('ThisIsMyContent');
|
The above example returns ‘This Is My Content’.
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.