previousIntroduction (Previous) (Next) File_SearchReplace::getNumOccurences()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File_SearchReplace::File_SearchReplace()

File_SearchReplace::File_SearchReplace() – constructor

Synopsis

require_once 'File/SearchReplace.php';

void File_SearchReplace::File_SearchReplace ( mixed $find , mixed $replace , string $files , mixed $directories = '' , boolean $include_subdir = true , array $ignore_lines = array() )

Description

Constructor

Parameter

  • mixed $find - the string/regex or array of strings/regexes to find

  • mixed $replace - the string/regex or array of strings/regexes to replace $find

  • array $files - the file(s) to perform this operation on.

  • array $directories - the directories to perform this operation on.

  • boolean $include_subdir - if performing on directories, whether to traverse subdirectories.

  • array $ignore_lines - ignore lines beginning with any of the strings in this array. This feature only works with the "normal" search.

Note

This function can be called statically.

previousIntroduction (Previous) (Next) File_SearchReplace::getNumOccurences()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.