1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00
Files
archived-php-src/ext/mbstring/tests/mb_ereg_replace.phpt
2002-10-21 19:19:05 +00:00

19 lines
341 B
PHP

--TEST--
mb_ereg_replace()
--SKIPIF--
<?php include('skipif.inc'); ?>
function_exists('mb_ereg_replace') or die("SKIP");
--POST--
--GET--
--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]