note 65359 rejected from function.preg-match-all by bjori
| From: | bjori@php.net | Date: | Sat, 29 Apr 2006 13:36:04 +0000 |
| Subject: | note 65359 rejected from function.preg-match-all by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-110089@lists.php.net to get a copy of this message | ||
Note Submitter: falcov at web dot de
----
Hi guys!
IMHO there is a little mistake in the german documentation of preg_match_all, it's also
possible that I'm not able to see it, but I think that there is missing a declaration of a
variable in your example of PREG_SET_ORDER.
You've written the following:
<?php
preg_match_all("|<[^>]+>(.*)</[^>]+>|U",
"<b>Beispiel: </b><div align=\"left\">das ist ein
Test</div>",
$ausgabe, PREG_SET_ORDER);
echo $ausgabe[0][0] . ", " . $out[0][1] . "\n";
echo $ausgabe[1][0] . ", " . $out[1][1] . "\n";
?>
But I can't see where $out is from. $out isn't declared in the above examples too.
So, please change it, because especially newbies have no chance to understand this example :)
Much thanks to you and your crew!
MasterDwarf!