Package Home

Zend Framework 2 Documentation (Manual)

PHK Home

File: /_sources/modules/zend.filter.word.dash-to-camel-case.txt

Size:619
Storage flags:no_autoload,compress/gzip (53%)

.. _zend.filter.set.dashtocamelcase:

DashToCamelCase
---------------

This filter modifies a given string such that 'words-with-dashes' are converted to 'WordsWithDashes'.

.. _zend.filter.set.dashtocamelcase.options:

Supported Options
^^^^^^^^^^^^^^^^^

There are no additional options for ``Zend\Filter\Word\DashToCamelCase``:

.. _zend.filter.set.dashtocamelcase.basic:

Basic Usage
^^^^^^^^^^^

A basic example of usage is below:

.. code-block:: php
   :linenos:

   $filter = new Zend\Filter\Word\DashToCamelCase();

   print $filter->filter('this-is-my-content');

The above example returns 'ThisIsMyContent'.

For more information about the PHK package format: http://phk.tekwire.net