Re: [PHP] printing keys and values of array

2006-01-06 Thread tg-php
I agree with the previous responder, foreach() is the way to go. Here's the doc page: http://uk2.php.net/manual/en/control-structures.foreach.php To get the keys, use the examples that are use $key => $value. Assuming your array is in $infoArr, you'd do this: foreach ($infoArr as $category =

Re: [PHP] printing keys and values of array

2006-01-05 Thread Jim Moseby
Ahmed Abdel-Aliem wrote: ... and i like to print it this way RTCode:CASE395 ... foreach($array as $key=>$value){echo $key.':'.$value;} JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] printing keys and values of array

2006-01-05 Thread Brady Mitchell
> -Original Message- > i need some help with printing an array, i would like to > print the keys and the values of them example : I use the dump_array posted by "examancer" at the following address: http://www.phpbuilder.com/board/showthread.php?t=10213508 when debugging, it should work w

Re: [PHP] printing keys and values of array

2006-01-05 Thread Zareef Ahmed
read about "foreach" function. Zareef Ahmd - Original Message - From: "Ahmed Abdel-Aliem" <[EMAIL PROTECTED]> To: Sent: Thursday, January 05, 2006 7:58 PM Subject: [PHP] printing keys and values of array Hi i need some help with printing an array, i wo

[PHP] printing keys and values of array

2006-01-05 Thread Ahmed Abdel-Aliem
Hi i need some help with printing an array, i would like to print the keys and the values of them example : if i have an array like that [EXTENDED] => Array ( [RTCode] => CASE395 [ManuPartNum]