Dear Friends,
I need to find and replace string within a text with a php include function.
For example let say my text is as below and the string i want to find and replace is register :
$text = "Heloo, This text is a simply created dummy text for testing. <br /> In this sentence we have a special word register to be replace with the php include word. Let's see whether it works....<br /><br />";
I want my function to find for the word "register " and replace it with php include function to include the registration_form.php..
My result should be echoing out the $text value. But of course we can't echo a funtion. So how to replace the "code" $text with the include function and display out the result?
I really need your help guys... Thank you...