mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
74466adb74
commit
d3bd61a19d
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ if (preg_match ("/page\s+#(\d+)/i", "Go to page #9.", $parts)) {
|
|||
<informalexample>
|
||||
<programlisting role="php">
|
||||
preg_match_all ("|<[^>]+>(.*)</[^>]+>|U",
|
||||
"<b>example: </b><div align=left>a test</div>",
|
||||
"<b>example: </b><div align=left>this is a test</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 ("|<[^>]+>(.*)</[^>]+>|U",
|
||||
"<b>example: </b><div align=left>a test</div>",
|
||||
"<b>example: </b><div align=left>this is a test</div>",
|
||||
$out, PREG_SET_ORDER);
|
||||
print $out[0][0].", ".$out[0][1]."\n";
|
||||
print $out[1][0].", ".$out[1][1]."\n"
|
||||
|
|
Loading…
Reference in a new issue