Re: printing keys and values of array

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

 



read  about  "foreach"  function. 


Zareef Ahmd

----- Original Message ----- 
From: "Ahmed Abdel-Aliem" <me2resh@xxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Thursday, January 05, 2006 7:58 PM
Subject:  printing keys and values of array


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] => 1BRA1ACFB
                            [Colour] => WHITE
                            [Compatibility] => (ATX/E ATX)
                            [PowerSupply] => YES
                            [PowerSupplySize] => redundant 337W2
                            [ExtDriveBays] => 3 x 5.25 1 x 3.5
                            [IntDriveBays] => 6 x 5.25
                            [USBPortsFront] => no
                            [FirewirePortsFront] => no
                            [AudioPortsFront] => no
                            [CaseFan] => 8cm FAN2  12cm FAN1  P/S2
                            [NumCaseFans] => 5
                            [FreeCaseFanPoints] => No
                            [Material] => Stainless steel
                            [Window] => No
                            [Packaging] => Retail
                            [Warranty] => 24 months for the PSU
                            [BoxContents] => Manual
                            [CartonHeight] => 735mm
                            [CartonWidth] => 285mm
                            [CartonDepth] => 585mm
                            [ItemsPerCarton] => 1
                            [CartonWeight] => 1.6kg
                            [EAN] =>
                            [BoxWeight] =>
                            [ItemHeight] =>
                            [ItemWidth] =>
                            [ItemDepth] =>
                        )
------------------------
and i like to print it this way
------------------------
RTCode:CASE395
ManuPartNum] :1BRA1ACFB
Colour] :WHITE
Compatibility :(ATX/E ATX)
PowerSupply :YES
PowerSupplySize:redundant 337W2
ExtDriveBays:3 x 5.25 1 x 3.5
IntDriveBays:6 x 5.25
USBPortsFront:no
FirewirePortsFront:no
AudioPortsFront:no
CaseFan:8cm FAN2  12cm FAN1  P/S2
NumCaseFans:5
FreeCaseFanPoints] => No
Material :Stainless steel
Window :No
Packaging:Retail
Warranty:24 months for the PSU
BoxContents:Manual
CartonHeight:735mm
CartonWidth:285mm
CartonDepth:585mm
ItemsPerCarton:1
CartonWeight:1.6kg
EAN:
BoxWeight:
ItemHeight:
ItemWidth:
ItemDepth:
------------------------
can anyone tell me plz how to do that ?
any help would be appreciated

thanks in advance

--
Ahmed Abdel-Aliem
Web Developer
www.SafariStudio.net
+20101108551
registered Linux user number 382789

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




====================================================
PHP Expert Consultancy in Development  http://www.indiaphp.com
Yahoo! : consultant_php MSN : consultancy@xxxxxxxxxxxx

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux