mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
39131219e8
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
18 lines
381 B
PHP
18 lines
381 B
PHP
--TEST--
|
|
mb_ereg_replace()
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--SKIPIF--
|
|
<?php
|
|
function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
mb_regex_set_options( '' );
|
|
print mb_ereg_replace( ' ', '-', 'a b c d e' )."\n";
|
|
print mb_ereg_replace( '([a-z]+)','[\\1]', 'abc def ghi' );
|
|
?>
|
|
--EXPECT--
|
|
a-b-c-d-e
|
|
[abc] [def] [ghi]
|