For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > March 2006 > Search / Replace using 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 Search / Replace using PHP
Ron Piggott

2006-03-30, 7:57 am

Is there a command in PHP that is equal to the search & replace function
in a word processor?

If I want to search for 'this' and replace it with 'that' what would the
syntax be?

Ron
João Cândido de Souza Neto

2006-03-30, 7:57 am

Ron Piggott (PHP wrote:

> Is there a command in PHP that is equal to the search & replace function
> in a word processor?
>
> If I want to search for 'this' and replace it with 'that' what would the
> syntax be?
>
> Ron


Look for str_replace().

--
---------------------------------------------------
João Cândido de Souza Neto
Web Developer
Sponsored Links







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

Copyright 2008 codecomments.com