Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove space before and after string

$words = '      my words     ';
$words = trim($words);
var_dump($words);
// string(8) "my words"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #remove #space #string
ADD COMMENT
Topic
Name
7+6 =