Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

#30612 [Bgs]: [de] control-structures.foreach: syntax error
ID:          30612
Updated by:  vrana@php.net
-Summary:     control-structures.foreach de: syntax error
Reported By: andreas at windischer dot at
Status:      Bogus
Bug Type:    Documentation problem
PHP Version: Irrelevant
New Comment:

It's wrong in German translation at
http://de.php.net/manual/de/control...res.foreach.php page. I sent
it to doc-de.


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

[2004-10-29 12:55:07] derick@php.net

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Of course this is going to give a parse error, you have broken code.

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

[2004-10-29 12:39:59] andreas at windischer dot at

Description:
------------
"}" after "?>"-Tag

Reproduce code:
---------------
<?php
$arr = array("eins", "zwei", "drei");
reset ($arr);
while (list(, $value) = each ($arr)) {
echo "Wert:  $value<br />\n";
}

foreach ($arr as $value) {
echo "Wert:  $value<br />\n";
?>
}

Expected result:
----------------
<?php
$arr = array("eins", "zwei", "drei");
reset ($arr);
while (list(, $value) = each ($arr)) {
echo "Wert:  $value<br />\n";
}

foreach ($arr as $value) {
echo "Wert:  $value<br />\n";
}
?>



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


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

Report this thread to moderator Post Follow-up to this message
Old Post
vrana@php.net
10-29-04 01:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:21 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.