note 65359 added to function.preg-match-all

From: Date: Sat, 29 Apr 2006 13:34:25 +0000
Subject: note 65359 added to function.preg-match-all
Groups: php.notes 
Request: Send a blank email to php-notes+get-110088@lists.php.net to get a copy of this message
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! ---- Server IP: 217.13.201.10 Probable Submitter: 194.97.166.136 ---- X-Spam-Status: No, hits=3.3 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match-all.php Edit -- http://master.php.net/note/edit/65359 Del: integrated -- http://master.php.net/note/delete/65359/integrated Del: useless -- http://master.php.net/note/delete/65359/useless Del: bad code -- http://master.php.net/note/delete/65359/bad+code Del: spam -- http://master.php.net/note/delete/65359/spam Del: non-english -- http://master.php.net/note/delete/65359/non-english Del: in docs -- http://master.php.net/note/delete/65359/in+docs Del: other reasons-- http://master.php.net/note/delete/65359 Reject -- http://master.php.net/note/reject/65359 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110088) next »