mirror of
https://github.com/php/php-src.git
synced 2025-01-07 03:13:33 +08:00
30 lines
383 B
PHP
30 lines
383 B
PHP
--TEST--
|
|
x (PCRE_EXTENDED) modififer
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(preg_match('/a e i o u/', 'aeiou', $m));
|
|
var_dump($m);
|
|
|
|
var_dump(preg_match('/a e i o u/x', 'aeiou', $m));
|
|
var_dump($m);
|
|
|
|
var_dump(preg_match("/a e\ni\to\ru/x", 'aeiou', $m));
|
|
var_dump($m);
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(0)
|
|
array(0) {
|
|
}
|
|
int(1)
|
|
array(1) {
|
|
[0]=>
|
|
string(5) "aeiou"
|
|
}
|
|
int(1)
|
|
array(1) {
|
|
[0]=>
|
|
string(5) "aeiou"
|
|
}
|