This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Changes a CamelCaseString into a string_with_underscores. | |
* | |
* @param string $string CamelCase string | |
* @return string string_with_underscores | |
*/ | |
public static function camelCaseToUnderscoreStyle($string) | |
{ | |
return preg_replace_callback( | |
'|[A-Z]|', |