git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@68984 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Slawomir Pucia 2002-01-29 13:51:44 +00:00
parent cf0d77395a
commit f5d4d6ccba

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.71 $ -->
<!-- $Revision: 1.72 $ -->
<reference id="ref.pcre">
<title>Regular Expression Functions (Perl-Compatible)</title>
<titleabbrev>PCRE</titleabbrev>
@ -512,7 +512,7 @@ $text = preg_replace ($search, $replace, $document);
<para>
The behavior of this function is almost identical to
<function>preg_replace</function>, except for the fact that instead of
<parameter>replacement</parameter> parameter, once should specify a
<parameter>replacement</parameter> parameter, one should specify a
<parameter>callback</parameter> that will be called and passed an array of
matched elements in the subject string. The callback should return the
replacement string. This function was added in PHP 4.0.5.