Answers for "remoce space in php"

PHP
2

php remove space before and after string

$words = '      my words     ';
$words = trim($words);
var_dump($words);
// string(8) "my words"
Posted by: Guest on January-28-2021

Browse Popular Code Answers by Language