1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
--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