For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > April 2006 > #37243 [NEW]: 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 [NEW]: german documentation of preg_match_all
falcov at web dot de

2006-04-29, 7:58 am

From: falcov at web dot de
Operating system: N/A
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: german documentation of preg_match_all

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 bug report at http://bugs.php.net/?id=37243&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37243&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37243&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37243&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37243&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37243&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37243&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37243&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37243&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37243&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37243&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37243&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37243&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37243&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37243&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37243&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37243&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37243&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37243&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37243&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37243&r=mysqlcfg
Sponsored Links







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

Copyright 2008 codecomments.com