2002-10-30 03:01:10 +08:00
|
|
|
--TEST--
|
2002-10-30 15:53:15 +08:00
|
|
|
mb_ereg() compat test 2
|
|
|
|
--SKIPIF--
|
2002-11-15 22:49:57 +08:00
|
|
|
<?php
|
2002-10-30 15:53:15 +08:00
|
|
|
extension_loaded('mbstring') or die('skip');
|
2002-11-15 22:26:33 +08:00
|
|
|
function_exists('mb_ereg') or die("SKIP mb_ereg() is not available in this build");
|
2002-11-15 22:49:57 +08:00
|
|
|
?>
|
2002-10-30 03:01:10 +08:00
|
|
|
--FILE--
|
2002-10-30 15:53:15 +08:00
|
|
|
<?php
|
|
|
|
/* (counterpart: ext/standard/tests/reg/005.phpt) */
|
|
|
|
$a="This is a nice and simple string";
|
2002-10-30 03:01:10 +08:00
|
|
|
echo mb_ereg(".*(is).*(is).*",$a,$registers);
|
|
|
|
echo "\n";
|
|
|
|
echo $registers[0];
|
|
|
|
echo "\n";
|
|
|
|
echo $registers[1];
|
|
|
|
echo "\n";
|
|
|
|
echo $registers[2];
|
|
|
|
echo "\n";
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
32
|
|
|
|
This is a nice and simple string
|
|
|
|
is
|
|
|
|
is
|