test_preg_match_all
<?php
preg_match_all(
'/(?J)(?<
match>
foo)|(?<
match>
bar)/',
'foo bar',
$matches,
PREG_PATTERN_ORDER
);
print_r($matches['match']);
?>
INFO
<?php
preg_match_all(
'/(?J)(?<
match>
foo)|(?<
match>
bar)/',
'foo bar',
$matches,
PREG_PATTERN_ORDER
);
print_r($matches['match']);
?>