public static function camelCase($string) {
        return static::cache(array(__METHOD__, $string), function() use ($string) {
            return str_replace(' ', '', mb_convert_case(str_replace(array('_', '-'), ' ', preg_replace('/[^-_a-z0-9\s]+/i', '', $string)), MB_CASE_TITLE));
        });
    }
public static function camelCase($string) {
        return static::cache(array(__METHOD__, $string), function() use ($string) {
            return str_replace(' ', '', mb_convert_case(str_replace(array('_', '-'), ' ', preg_replace('/[^-_a-z0-9\s]+/i', '', $string)), MB_CASE_TITLE));
        });
    }
public static function camelCase ( $ string ) { return static :: cache ( array ( __METHOD__ , $ string ) , function ( ) use ( $ string ) { return str_replace ( ' ' , '' , mb_convert_case ( str_replace ( array ( '_' , '-' ) , ' ' , preg_replace ( '/[^-_a-z0-9\s]+/i' , '' , $ string ) ) , MB_CASE_TITLE ) ) ; } ) ; }
Inflect a word to a camel case form with the first letter being capitalized.

@param string $string
@return string
Inflect a word to a camel case form with the first letter being capitalized .