2002-10-30 03:01:10 +08:00
|
|
|
--TEST--
|
2002-10-30 15:53:15 +08:00
|
|
|
mb_ereg_replace() 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 23:34:57 +08:00
|
|
|
function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() 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/002.phpt) */
|
|
|
|
$a="abc123";
|
|
|
|
echo mb_ereg_replace("123","",$a);
|
|
|
|
?>
|
2002-10-30 03:01:10 +08:00
|
|
|
--EXPECT--
|
|
|
|
abc
|