mirror of
https://github.com/php/php-src.git
synced 2024-12-11 10:54:47 +08:00
16 lines
388 B
PHP
16 lines
388 B
PHP
--TEST--
|
|
mb_ereg_replace() compat test 7
|
|
--SKIPIF--
|
|
<?php
|
|
extension_loaded('mbstring') or die('skip');
|
|
function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
/* (counterpart: ext/standard/tests/reg/010.phpt) */
|
|
$a="abc122222222223";
|
|
echo mb_ereg_replace("1(2*)3","\\1def\\1",$a);
|
|
?>
|
|
--EXPECT--
|
|
abc2222222222def2222222222
|