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 =
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
> -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
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 would like to print the
keys a
4 matches
Mail list logo