This filter modifies a given string such that ‘CamelCaseWords’ are converted to ‘camel-case-words’.
There are no additional options for Zend\Filter\Word\CamelCaseToDash:
A basic example of usage is below:
1 2 3 | $filter = new Zend\Filter\Word\CamelCaseToDash();
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.