Re: foreach()
| From: | Han | Date: | Mon, 31 Jan 2005 09:58:15 +0000 |
| Subject: | Re: foreach() | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38401@lists.php.net to get a copy of this message | ||
Try this : --
$z = array('foo' => array('bar')), 'dis' => array('dat'));
while (list($key, $val) = each($z)) {
echo "<BR>$key $val";
}
----- Original Message ----- From: "Yemi Obembe" <fickledreams@yahoo.com>
To: <php-db@lists.php.net>
Sent: Monday, January 31, 2005 9:47 AM
Subject: [PHP-DB] foreach()
Hi folks. wat can be done to dis: $z = array('foo' => array('bar')), 'dis' => array('dat')); foreach(//???) { echo "//??? <br> //?? </p>"; } to output dis: foo bar dis dat --------------------------------- A passion till tomorrow, Opeyemi Obembe | ng.clawz.com --------------------------------- Do you Yahoo!? The all-new My Yahoo! - What will yours do?