xref: /PHP-7.1/ext/pcre/tests/pcre_extended.phpt (revision a7bc2866)
1--TEST--
2x (PCRE_EXTENDED) modififer
3--FILE--
4<?php
5
6var_dump(preg_match('/a e i o u/', 'aeiou', $m));
7var_dump($m);
8
9var_dump(preg_match('/a e i o u/x', 'aeiou', $m));
10var_dump($m);
11
12var_dump(preg_match("/a e\ni\to\ru/x", 'aeiou', $m));
13var_dump($m);
14
15?>
16--EXPECT--
17int(0)
18array(0) {
19}
20int(1)
21array(1) {
22  [0]=>
23  string(5) "aeiou"
24}
25int(1)
26array(1) {
27  [0]=>
28  string(5) "aeiou"
29}
30