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 ;-)

Leave a Comment

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

Explore PHP / MySQL

More from About.com

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

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

All rights reserved.