string replace in php

<?php

$str 
"My Name Is INPLACE ";
$str=str_replace("INPLACE","Rajeev",$str);
echo 
$str ;


// output : My Name Is Rajeev 

Comments

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress