RegexIterator::__construct(PHP 5 >= 5.2.0) RegexIterator::__construct — Create a new RegexIterator Описание
   public  RegexIterator::__construct()
    ( Iterator $iterator
   , string $regex
   [, int $mode = self::MATCH
   [, int $flags = 0
   [, int $preg_flags = 0
  ]]] ) 
  Create a new RegexIterator which filters an Iterator using a regular expression. Список параметров
 
 Примеры
 Пример #1 RegexIterator::__construct() example Creates a new RegexIterator that filters all strings that start with 'test'. 
<?phpРезультатом выполнения данного примера будет что-то подобное: test 1 test 123 Смотрите также
 
  | 
||||||||||||||