Answers for "str_replace php whitespace"

PHP
1

php string replace space

$journalName = preg_replace('/\s+/', '_', $journalName);
Posted by: Guest on February-05-2021
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