php replace space with underscore

50

php replace space with underscore -

$str = str_replace(' ', '_', $str);

Comments

Submit
0 Comments