1. Home
  2. Computing & Technology
  3. PHP / MySQL
photo of Angela Bradley
Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

Find and Replace with PHP

Monday April 3, 2006
In PHP you can use the str_replace () function to find and replace information within a string. You can search within a single piece of data or within an entire array. Your search and replacement strings can also consist of either a single entry, or an array of data.
Comments
July 18, 2007 at 11:18 pm
(1) cj says:

you need to put some examples on there.

December 21, 2007 at 5:19 pm
(2) luke smith says:

is this supposed to help?!

July 3, 2008 at 7:43 am
(3) Henk says:

maybe you should click on the function ;-)

August 30, 2008 at 8:02 pm
(4) teedot says:

this is useless to anyone without any examples.

September 25, 2008 at 6:57 am
(5) S-fin says:

This is useless to anyone too stupid to click on the link…

January 21, 2009 at 5:33 pm
(6) Anonymous says:

Leave it up to a woman so-called “programmer” to not have an example. Sorry guys.

January 23, 2009 at 2:24 pm
(7) php says:

Wow, sexist… nice!

Click the link bright boy….

June 1, 2009 at 6:07 pm
(8) php person thanks in part to your lessons says:

Angela –

I always appreciate your posts – very clear explanations with GOOD EXAMPLES!

Thanks!

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.