php-src/ext/ereg/tests/006.phpt
2007-07-15 20:03:16 +00:00

11 lines
272 B
PHP

--TEST--
Test ereg_replace of start-of-line
--SKIPIF--
<?php if (unicode_semantics()) die('skip unicode.semantics=on'); ?>
--FILE--
<?php $a="This is a nice and simple string";
echo ereg_replace("^This","That",$a);
?>
--EXPECT--
That is a nice and simple string