changing whitespace to underscore
Posted: Sat Oct 29, 2005 6:42 pm
How would I go about altering my string from
user name
to
user_name
?
user name
to
user_name
?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?PHP
$msg = str_replace(" ", "_", $msg);
?>