Answers for "php preg replace tab space"

PHP
0

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
0

php preg_replace whitespace

$id = "aa aa";
echo $id;
preg_replace('/\s+/', '_', $id);
echo $id;
Posted by: Guest on March-19-2021

Browse Popular Code Answers by Language