File_SearchReplace::File_SearchReplace()
File_SearchReplace::File_SearchReplace() -- コンストラクタ
概要
require_once 'File/SearchReplace.php'; |
void
File_SearchReplace::File_SearchReplace (string $find, string $replace, string $files [, mixed $directories = '' [, boolean
$include_subdir = TRUE [, array $ignore_lines = array()]]])
パラメータ
string $find - 検索対象の文字/正規表現
string $replace - $findを置換する文字/正規表現
array $files - 対象となるファイル
array $directories - 対象となるディレクトリ
boolean $include_subdir -
サブディレクトリを横断して走査するかどうか
array $ignore_lines -
行を無視するための文字列をもつ配列。この要素は"normal"の検索でのみ動作します。
注意
この関数は、スタティックにコールする
ことができます。