Horje
php convert words with spaces to camelcase Code Example
php convert words with spaces to camelcase
public static function camelCase($str, array $noStrip = [])
{
        // non-alpha and non-numeric characters become spaces
        $str = preg_replace('/[^a-z0-9' . implode("", $noStrip) . ']+/i', ' ', $str);
        $str = trim($str);
        // uppercase the first character of each word
        $str = ucwords($str);
        $str = str_replace(" ", "", $str);
        $str = lcfirst($str);

        return $str;
}
php function to convert string to camelcase
echo ucwords("hello world");




Php

Related
how to get the index in foreach loop in laravel Code Example how to get the index in foreach loop in laravel Code Example
uninstall php ubuntu Code Example uninstall php ubuntu Code Example
laravel foreach loop index Code Example laravel foreach loop index Code Example
ucwords in php Code Example ucwords in php Code Example
message	"Class 'Input' not found" Code Example message "Class 'Input' not found" Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10