how to remove space from a string in php 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");