mirror of
https://github.com/php/php-src.git
synced 2024-10-06 09:16:11 +00:00
17 lines
238 B
Plaintext
17 lines
238 B
Plaintext
![]() |
--TEST--
|
||
|
simple ereg test
|
||
|
--POST--
|
||
|
--GET--
|
||
|
--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
|