Answers for "trim string update 10 characters including space in php"

PHP
-1

php replace space with 20

//Replace space with %20 for url to understand
$new = str_replace(' ', '%20', $your_string);

//Alternate for URL use, use this
urlencode ( string $str )
Posted by: Guest on July-23-2020
3

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

Code answers related to "trim string update 10 characters including space in php"

Browse Popular Code Answers by Language