References in an array

From: Date: Fri, 19 Jan 2001 12:23:47 +0000
Subject: References in an array
Groups: php.general 
Request: Send a blank email to php-general+get-35617@lists.php.net to get a copy of this message
Hi there, I'm just a beginner in programming PHP; so my problem is probably a mistake in my thinking. I'm using some arrays to display information of an internal news-server in a web-browser, like $overview = imap_fetch_overview($mbox, "1:$last", 0); $IDs = array(); $i = 0; foreach($overview as $val){ $IDs[$i][0] = $val->message_id; $IDs[$i][1] = &$val; $i++; } echo "<table border=\"1\">"; foreach($IDs as $val){ echo "<tr><td>" . $val[1]->subject . "</td></tr>"; } echo "</table>"; Unfortunately I only get an empty table; the subject of the referenced header is not printed in the HTML-Code. Where's the error in my thinking ? Any idea ? Thank you Mathias ____________________________________________ Mathias Ruppel Abt. TAC SAP AG Neurottstr. 16 69190 Walldorf Tel. +49 (0) 6227 76 34 23 mathias.ruppel@sap.com <mailto:mathias.ruppel@sap.com> ____________________________________________

« previous php.general (#35617) next »