php preg_replace whitespace

63

php preg_replace whitespace -

$id = "aa aa";
echo $id;
preg_replace('/\s+/', '_', $id);
echo $id;

Comments

Submit
0 Comments