Answers for "erase space front and back string php"

PHP
0

remove space from start and end of string in php

$trimmed = trim($text);
var_dump($trimmed);
Posted by: Guest on September-22-2020
1

php remove all whitespace from a string

//remove all white spaces from a string
$whatonearth=preg_replace('/\s/','',"what o n   ear th");
Posted by: Guest on November-04-2019

Code answers related to "erase space front and back string php"

Browse Popular Code Answers by Language