Parse Camel Case
This little function will take CamelCase and return it as Camel Case, ideal for a sunday at the beach.
<?php
/**
*
* @Parse CamelCase to Camel Case
*
* @param string $string
*
* @return string
*
*/
function parseCamelCase($string)
{
return preg_replace('/(?<=[a-z])(?=[A-Z])/',' ',$string);
}
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




