php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5525 double foreach-output within multiple arrays
Submitted: 2000-07-12 04:51 UTC Modified: 2000-08-08 23:00 UTC
From: kaspro at hellige dot de Assigned:
Status: Closed Package: Other
PHP Version: 4.0.1pl2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
20 + 16 = ?
Subscribe to this entry?

 
 [2000-07-12 04:51 UTC] kaspro at hellige dot de
I may give you a short script...

foreach($arr as $Row){
 print "<tr>";
 foreach($Row as $Value) print "<td>$Value</td>";
 print "</tr>";
}

The output of $Row works fine, but:
$Value comes like the following:

Value1 Value1 Value2 Value2 Value3 Value3   .....and so on.

I hope this can help you,

Chris

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-13 04:07 UTC] stas at cvs dot php dot net
What was your $arr ?
 [2000-08-08 23:00 UTC] waldschrott@php.net
Closed due to missing user feedback.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC