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");
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #php #remove #whitespace #string
ADD COMMENT
Topic
Name
9+2 =