|
Size: | 8377 |
Storage flags: | no_autoload,compress/gzip (33%) |
This filter modifies a given string such that ‘words-with-dashes’ are converted to ‘words_with_dashes’.
There are no additional options for Zend\Filter\Word\DashToUnderscore:
A basic example of usage is below:
1 2 3 | $filter = new Zend\Filter\Word\DashToUnderscore();
print $filter->filter('this-is-my-content');
|
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.