Tutorials »

Searching and replacing content in files is a common task all of us do regularly. Most programmers will implement it using Perl a shell script or through a editor. Perl offers itself as an excellent tool for the required purpose; we PHP programmers are not quite so lucky in that matter. Search/replace is easier from a shell prompt or an editor, but what if you have to do the same programatically in php. File_SearchReplace is a pear package that helps you search/replace in files through a nice object oriented interface.
Posted by girish.r 1470 days ago (http://www.codediesel.com)
Discuss  | Bury | Tweet This | Tagged: search replace
Add To 

Who Voted for this Story

Comments

No one has commented on this article yet.

Log in to comment or register here.