src/Stdlib/Util.php
public static function camelTo_($str) {
        if (!is_string($str))
            return '';
        $str[0] = strtolower($str[0]);
        $func = create_function('$c', 'return "_" . strtolower($c[1]);');
        return preg_replace_callback('/([A-Z])/', $func, $str);
    }
public static function camelTo_($str) {
        if (!is_string($str))
            return '';
        $str[0] = strtolower($str[0]);
        $func = create_function('$c', 'return "_" . strtolower($c[1]);');
        return preg_replace_callback('/([A-Z])/', $func, $str);
    }
public static function camelTo_ ( $ str ) { if ( ! is_string ( $ str ) ) return '' ; $ str [ 0 ] = strtolower ( $ str [ 0 ] ) ; $ func = create_function ( '$c' , 'return "_" . strtolower($c[1]);' ) ; return preg_replace_callback ( '/([A-Z])/' , $ func , $ str ) ; }
Turns camelCasedString to under_scored_string
@param string $str
@return string
Turns camelCasedString to under_scored_string