Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove all whitespace from a string

//remove all white spaces from a string
$whatonearth=preg_replace('/s/','',"what o n   ear th");
 
PREVIOUS NEXT
Tagged: #php #remove #whitespace #string
ADD COMMENT
Topic
Name
9+1 =