| Norland, Martin 2005-10-06, 6:55 pm |
| =20
I think he's looking for str_replace() / preg_replace() or sprintf() or
similar
http://www.php.net/str_replace
http://www.php.net/preg_replace
http://www.php.net/sprintf
cheers,
- Martin Norland, Sys Admin / Database / Web Developer, International
Outreach x3257
The opinion(s) contained within this email do not necessarily represent
those of St. Jude Children's Research Hospital.
-----Original Message-----
From: Bastien Koert [mailto:bastien_k@hotmail.com]=20
Sent: Thursday, October 06, 2005 12:14 PM
To: ron.php@actsministries.org; php-db@lists.php.net
Subject: RE: [PHP-DB] Search & Replace within PHP. .
No sure i this is what you want but...
echo "Hi, my name is " . $rows['name'];
bastien
>From: "Ron Piggott" <ron.php@actsministries.org>
>Reply-To: "Ron Piggott" <ron.php@actsministries.org>
>To: "PHP DB" <php-db@lists.php.net>
>Subject: [PHP-DB] Search & Replace within PHP
>Date: Thu, 6 Oct 2005 10:40:45 -0500
>
>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=20
>"replace_with_real_name"
>and be able to put it anywhere in the sentence.
>
>Ron
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
--=20
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|