mirror of
https://github.com/php/php-src.git
synced 2025-01-05 02:14:08 +08:00
20 lines
391 B
PHP
20 lines
391 B
PHP
--TEST--
|
|
Test Regular expression register support in ereg
|
|
--FILE--
|
|
<?php $a="This is a nice and simple string";
|
|
echo ereg(".*(is).*(is).*",$a,$registers);
|
|
echo "\n";
|
|
echo $registers[0];
|
|
echo "\n";
|
|
echo $registers[1];
|
|
echo "\n";
|
|
echo $registers[2];
|
|
echo "\n";
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Function ereg() is deprecated in %s on line %d
|
|
32
|
|
This is a nice and simple string
|
|
is
|
|
is
|