public static function camel($str, $split = '-_')
    {
        return preg_replace_callback(
            '/[' . preg_quote($split) . '](.?)/',
            function ($m) {
                return ucfirst($m[1]);
            },
            $str
        );
    }
public static function camel($str, $split = '-_')
    {
        return preg_replace_callback(
            '/[' . preg_quote($split) . '](.?)/',
            function ($m) {
                return ucfirst($m[1]);
            },
            $str
        );
    }
public static function camel ( $ str , $ split = '-_' ) { return preg_replace_callback ( '/[' . preg_quote ( $ split ) . '](.?)/' , function ( $ m ) { return ucfirst ( $ m [ 1 ] ) ; } , $ str ) ; }
Camelcases an underscored or dashed string

@param string $str
@param string $split
@return string
Camelcases an underscored or dashed string