2002-10-10 17:05:04 +00:00
|
|
|
--TEST--
|
|
|
|
mb_regex_set_options()
|
|
|
|
--SKIPIF--
|
2002-10-30 08:06:52 +00:00
|
|
|
<?php
|
2002-11-15 15:34:57 +00:00
|
|
|
extension_loaded('mbstring') or die("skip mbstring not available\n");
|
|
|
|
function_exists('mb_regex_set_options') or die("skip\n");
|
2002-10-30 08:06:52 +00:00
|
|
|
?>
|
2002-10-10 17:05:04 +00:00
|
|
|
--FILE--
|
2002-10-21 19:19:05 +00:00
|
|
|
<?php
|
|
|
|
mb_regex_set_options( 'x' );
|
|
|
|
print mb_ereg_replace(' -', '+', '- - - - -' );
|
|
|
|
|
|
|
|
mb_regex_set_options( '' );
|
|
|
|
print mb_ereg_replace(' -', '+', '- - - - -' );
|
|
|
|
?>
|
|
|
|
|
2002-10-10 17:05:04 +00:00
|
|
|
--EXPECT--
|
|
|
|
+ + + + +-++++
|