remove spaces from string laravel code example
Example: php remove all whitespace from a string
//remove all white spaces from a string
$whatonearth=preg_replace('/\s/','',"what o n ear th");
//remove all white spaces from a string
$whatonearth=preg_replace('/\s/','',"what o n ear th");