<?php
$pattern = '/(a)/gi';
$subject = 'Welcome to RegExr 0.3b, an intuitive tool for learning, writing, and testing Regular Expressions. Key features include: ';
$matches1 = new array();
$res1 = preg_match_all($pattern, $subject, &$matches1, PREG_PATTERN_ORDER, 0);
print_r $matches1;
?>
Комментариев нет:
Отправить комментарий