Re: foreach()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
To: <php-db@xxxxxxxxxxxxx>
Sent: Monday, January 31, 2005 9:47 AM
Subject: 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?

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux