For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > October 2005 > Re: [PHP-DB] Search & Replace within PHP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Search & Replace within PHP
Alain Rivest

2005-10-06, 6:55 pm

Ron Piggott a écrit :

>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.
>
>
>
>

My name is $username
That's called a variable! You should learn the basis before asking such
an obvious question!


--

Alain -- http://www.vivahate.org
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com