Answers for "replace string after second space 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
1

php string replace space

$journalName = preg_replace('/\s+/', '_', $journalName);
Posted by: Guest on February-05-2021
0

php replace multiple spaces end chrters to one

$string = preg_replace('/[\s$@_*]+/', '_', $string);
Posted by: Guest on December-25-2020

Code answers related to "replace string after second space php"

Browse Popular Code Answers by Language