PHP Classes

File: demo.php

Recommend this page to a friend!
  Classes of Khoa Nguyen   PHP Naming Convention Converter   demo.php   Download  
File: demo.php
Role: Example script
Content type: text/plain
Description: demo
Class: PHP Naming Convention Converter
Convert names between different conventions
Author: By
Last change: add file extension (php)
Date: 9 years ago
Size: 446 bytes
 

Contents

Class file image Download
require_once 'NamingConventionConverter.php';
echo NamingConventionConverter::underscores2Camel('with_underscores'); // withUnderscores
echo NamingConventionConverter::camel2Underscores('camelCased'); // camel_cased
echo NamingConventionConverter::camel2Words('camelCased'); // camel Cased
echo NamingConventionConverter::camel2Ucwords('camelCased'); // Camel Cased
echo NamingConventionConverter::camel2Ucfirst('camelCased'); // Camel cased