For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > April 2006 > #37243 [Opn->Csd]: german documentation of preg_match_all









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #37243 [Opn->Csd]: german documentation of preg_match_all
samesch@php.net

2006-04-29, 6:58 pm

ID: 37243
Updated by: samesch@php.net
Reported By: falcov at web dot de
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: N/A
PHP Version: Irrelevant
New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.


Previous Comments:
------------------------------------------------------------------------

[2006-04-29 13:48:11] falcov at web dot de

Description:
------------
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 :)

I think you had to change $out in $ausgabe, than it works.

Much thanks to you and your crew!

MasterDwarf!



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37243&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com