Quick actions

cmd+k|ctrl+k

Navigation

Languages

test_preg_match_all

Snippet info

Language

Php

Visibility

public

Author

fenghestudio

Created

2019-09-17T02:12:22Z

Updated

2019-09-17T02:12:22Z

<?php

preg_match_all(
    '/(?J)(?<
match>
foo)|(?<
match>
bar)/',
    'foo bar',
    $matches,
    PREG_PATTERN_ORDER
);

print_r($matches['match']);

?>
INFO