fixed syntax error in preg_match_all() description examples

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@28670 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Monte Ohrt 2000-07-20 19:11:33 +00:00
parent 74466adb74
commit d3bd61a19d

View file

@ -159,7 +159,7 @@ if (preg_match ("/page\s+#(\d+)/i", "Go to page #9.", $parts)) {
<informalexample>
<programlisting role="php">
preg_match_all ("|&lt;[^>]+>(.*)&lt;/[^>]+>|U",
"&lt;b>example: &lt;/b>&lt;div align=left>a test&lt;/div>",
"&lt;b>example: &lt;/b>&lt;div align=left>this is a test&lt;/div>",
$out, PREG_PATTERN_ORDER);
print $out[0][0].", ".$out[0][1]."\n";
print $out[1][0].", ".$out[1][1]."\n"
@ -187,7 +187,7 @@ example: , this is a test
<informalexample>
<programlisting role="php">
preg_match_all ("|&lt;[^>]+>(.*)&lt;/[^>]+>|U",
"&lt;b>example: &lt;/b>&lt;div align=left>a test&lt;/div>",
"&lt;b>example: &lt;/b>&lt;div align=left>this is a test&lt;/div>",
$out, PREG_SET_ORDER);
print $out[0][0].", ".$out[0][1]."\n";
print $out[1][0].", ".$out[1][1]."\n"