mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
17 lines
308 B
PHP
17 lines
308 B
PHP
--TEST--
|
|
simple ereg test
|
|
--SKIPIF--
|
|
<?php if (unicode_semantics()) die('skip unicode.semantics=on'); ?>
|
|
--FILE--
|
|
<?php $a="This is a nice and simple string";
|
|
if (ereg(".*nice and simple.*",$a)) {
|
|
echo "ok\n";
|
|
}
|
|
if (!ereg(".*doesn't exist.*",$a)) {
|
|
echo "ok\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
ok
|
|
ok
|