mirror of
https://github.com/php/php-src.git
synced 2024-10-05 00:36:17 +00:00
17 lines
305 B
PHP
17 lines
305 B
PHP
--TEST--
|
|
mb_ereg() compatibility test 1 (counterpart: ext/standard/tests/reg/004.phpt)
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php $a="This is a nice and simple string";
|
|
if (mb_ereg(".*nice and simple.*",$a)) {
|
|
echo "ok\n";
|
|
}
|
|
if (!mb_ereg(".*doesn't exist.*",$a)) {
|
|
echo "ok\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
ok
|
|
ok
|