faqts : Computers : Programming : Languages : PHP : kms : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 7 people (100%) answered Yes
Recently 3 of 3 people (100%) answered Yes


How can I echo all the keys and values of an array?

Jan 25th, 2000 13:30
Vladas Lapinskas, Steve Vadla, Nathan Wallace,

To list both variables (keys) names and values, use the following script
while(list($key,value)=each($arr)) echo "$key = $value";