Originally Posted by tiamak
simply use str_replace/preg_replace function
So I have to find the $color in the text field and replace it with "blue" and only then print out the text?
Isn't there a way for PHP to do it automatically? For example:
$color = "blue";
$text = "The sky is $color";
will print out: The sky is blue
I was trying to do something like that, except in this case the $text content is read from a text field from a MySQL table which has the data The sky is $color