Search & Replace within PHP
| From: | Ron Piggott | Date: | Thu, 06 Oct 2005 15:40:45 +0000 |
| Subject: | Search & Replace within PHP | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-40475@lists.php.net to get a copy of this message | ||
Is there a search & replace PHP command?
An example I am needing this for would be:
My name is replace_with_real_name
I want to retrieve replace_with_real_name from a mySQL database and put in
the name ... the key is that I want to put the person's name in various
position ... so I want to search for something like "replace_with_real_name"
and be able to put it anywhere in the sentence.
Ron