Re: Array Question
| From: | php3 at developersdesk dot com | Date: | Fri, 17 Nov 2000 11:43:55 +0000 |
| Subject: | Re: Array Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-25889@lists.php.net to get a copy of this message | ||
Addressed to: "Kevin Leavell" <k@bigsky.net>
php-general@lists.php.net
** Reply to note from "Kevin Leavell" <k@bigsky.net> Fri, 17 Nov 2000 02:30:49 -0700
>
> I am trying to loop through an array with: while(list($key, $value) =
> each($AddressInfo)) { print("$key is $value <br>\n"); }
>
> I am getting: Name_Prefix is Array<br> Name_First is Array<br>
>
> I need all the values of the array but am not sure how to access them.
What is in $AddressInfo?
It appears that you have an array of arrays. What does this give you?
while( list( $key, $value ) = each( $AddressInfo )) {
echo "Key: $Key<BR>\n";
while( list( $K, $V ) = each( $value )) {
echo " K: $K - V: $V<BR>\n";
}
}
If that doesn't help, let me know where $AddressInfo comes from, and how it
is created.
Rick Widmer
Internet Marketing Specialists
www.developersdesk.com