public static function camelize($string, $delimiter = ' '): string
    {
        $stringParts = explode($delimiter, $string);
        $camelized = array_map('ucwords', $stringParts);

        return implode($delimiter, $camelized);
    }
public static function camelize($string, $delimiter = ' '): string
    {
        $stringParts = explode($delimiter, $string);
        $camelized = array_map('ucwords', $stringParts);

        return implode($delimiter, $camelized);
    }
public static function camelize ( $ string , $ delimiter = ' ' ) : string { $ stringParts = explode ( $ delimiter , $ string ) ; $ camelized = array_map ( 'ucwords' , $ stringParts ) ; return implode ( $ delimiter , $ camelized ) ; }
Turns every first letter in every word in the string into a camel cased letter

@param string $string
@param string $delimiter

@return string
Turns every first letter in every word in the string into a camel cased letter