Is there a reason that I'm not seeing, why this doesn't work?
$string = $someLongUserGeneratedString; $replaced = str_replace(' ', '_', $string); echo $replaced;
The output still includes spaces... Any ideas would be awesome