static function camelize($str) {
        // john_aldrich -> john aldrich
        $str = str_replace('_', ' ', $str);

        // john aldrich -> John Aldrich
        $str = ucwords($str);

        // John Aldrich -> JohnAldrich
        $str = str_replace(' ', '', $str);

        return lcfirst($str);
    }
static function camelize($str) {
        // john_aldrich -> john aldrich
        $str = str_replace('_', ' ', $str);

        // john aldrich -> John Aldrich
        $str = ucwords($str);

        // John Aldrich -> JohnAldrich
        $str = str_replace(' ', '', $str);

        return lcfirst($str);
    }
static function camelize ( $ str ) { // john_aldrich -> john aldrich $ str = str_replace ( '_' , ' ' , $ str ) ; // john aldrich -> John Aldrich $ str = ucwords ( $ str ) ; // John Aldrich -> JohnAldrich $ str = str_replace ( ' ' , '' , $ str ) ; return lcfirst ( $ str ) ; }
Changes word format to camelize

@param   string  $str    String

@return  string
Changes word format to camelize