|
|
Zend Framework 2 Documentation (Manual) | |
|
File: /_sources/modules/zend.filter.word.camel-case-to-dash.txt
Size: | 617 |
Storage flags: | no_autoload,compress/gzip (52%) |
.. _zend.filter.set.camelcasetodash:
CamelCaseToDash
---------------
This filter modifies a given string such that 'CamelCaseWords' are converted to 'Camel-Case-Words'.
.. _zend.filter.set.camelcasetodash.options:
Supported Options
^^^^^^^^^^^^^^^^^
There are no additional options for ``Zend\Filter\Word\CamelCaseToDash``:
.. _zend.filter.set.camelcasetodash.basic:
Basic Usage
^^^^^^^^^^^
A basic example of usage is below:
.. code-block:: php
:linenos:
$filter = new Zend\Filter\Word\CamelCaseToDash();
print $filter->filter('ThisIsMyContent');
The above example returns 'This-Is-My-Content'.
For more information about the PHK package format: http://phk.tekwire.net