I have a PHP Script that users will enter a name like: Alex_Newton,
Alex_Newton
However, some users will use a space rather than an underscore, so my question is:>
Use str_replace function of PHP.
Something like:
$str = str_replace(' ', '_', $str);