Package Home

Zend Framework 2 Documentation (Manual)

PHK Home

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

Size:671
Storage flags:no_autoload,compress/gzip (50%)

.. _zend.filter.set.underscoretocamelcase:

UnderscoreToCamelCase
---------------------

This filter modifies a given string such that 'words_with_underscores' are converted to 'WordsWithUnderscores'.

.. _zend.filter.set.underscoretocamelcase.options:

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

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

.. _zend.filter.set.underscoretocamelcase.basic:

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

A basic example of usage is below:

.. code-block:: php
   :linenos:

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

   print $filter->filter('this_is_my_content');

The above example returns 'ThisIsMyContent'.

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