aid

Wednesday, 13 August 2014

how to search and replace in php

str_replace funtion search an key and that replace that from your desired key with the help of str_replace() in php. below listed example you can try.

<?php

$string = "this is demo";
echo str_replace("demo","new demo",$string);


?>

No comments:

Post a Comment