update : 2015.11.03
php.shukuma.com검색:
|
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. 인수
예제
Example #1 RegexIterator::__construct() example Creates a new RegexIterator that filters all strings that start with 'test'.
<?php 위 예제의 출력 예시: test 1 test 123 참고
|