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);
?>
<?php
$string = "this is demo";
echo str_replace("demo","new demo",$string);
?>
No comments:
Post a Comment