cortesi Fri Jan 31 16:28:07 2003 EDT Modified files: /phpdoc/en/reference/pcre/functions preg-replace.xml Log: typos Index: phpdoc/en/reference/pcre/functions/preg-replace.xml diff -u phpdoc/en/reference/pcre/functions/preg-replace.xml:1.6 phpdoc/en/reference/pcre/functions/preg-replace.xml:1.7 --- phpdoc/en/reference/pcre/functions/preg-replace.xml:1.6 Wed Jan 22 23:06:26 2003 +++ phpdoc/en/reference/pcre/functions/preg-replace.xml Fri Jan 31 16:28:07 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 --> <refentry id="function.preg-replace"> <refnamediv> @@ -17,7 +17,7 @@ </methodsynopsis> <para> Searches <parameter>subject</parameter> for matches to - <parameter> pattern</parameter> and replaces them with + <parameter>pattern</parameter> and replaces them with <parameter>replacement</parameter>. If <parameter>limit</parameter> is specified, then only <parameter>limit</parameter> matches will be replaced; if @@ -53,7 +53,7 @@ <programlisting role="php"> <![CDATA[ <?php -$str = "April 15, 2003"; +$string = "April 15, 2003"; $pattern = "/(\w+) (\d+), (\d+)/i"; $replacement = "\${1}1,\$3"; print preg_replace($pattern, $replacement, $string);
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php