With SearchReplace, you can replace a text in as many as desired files by another.
Пример 39-1. Typical usage
|
The example replaces all occurences of "Yes" with "No" in the given $files and in all files in the directory "/mail/". If a line in a file starts with one of the chars in $ignoreline, possible matches will be ignored.
You can do a new search without creating a new instance of the class.
Пример 39-2. Do a new search
|
File_SearchReplace supports different kinds of search functions. The type directly influence the format of the required $find-parameter
normal - default, the only type supporting the $IgnoreLines-parameter |
quick - use str_replace() |
preg - use preg_replace() |
ereg - use ereg_replace() |
Пред. | Начало | След. |
File_SearchReplace | Уровень выше | File_SearchReplace::File_SearchReplace() |
HIVE: All information for read only. Please respect copyright! |