Return to Snippet

Revision: 54430
at December 23, 2011 08:35 by inreflection7


Initial Code
<?PHP
$name = $_POST[name];
$pagelink = str_replace(" ","_",$name);
?>

Initial URL

                                

Initial Description
Search for a string, if matched replace with second provided paramater. Third parameter is the variable whose value is the string you'd like to search.

Initial Title
Replace string in PHP

Initial Tags
php, replace

Initial Language
PHP