mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
26 lines
513 B
PHP
26 lines
513 B
PHP
--TEST--
|
|
mb_ereg() compat test 2
|
|
--SKIPIF--
|
|
<?php
|
|
extension_loaded('mbstring') or die('skip');
|
|
function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
/* (counterpart: ext/standard/tests/reg/005.phpt) */
|
|
$a="This is a nice and simple string";
|
|
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
|