...

View Full Version : please help me with a program



ssscot
09-18-2011, 07:06 PM
hi friends i am new to php and i need to know how to write this program.

here's an array
$arr=array("a"=>array('apple','aeroplane'),
"b"=>array('bat','ball'),
"c"=>array('cat','catch'),
"d"=>array('dog','doll'));

i need to display the data in table(horizontal and vertical) :

a Apple Aeroplane
b Ball Bat
c Catch Cat
d doll dog

A B C D
Aeroplane Ball Cat Dog
Apple Bat Catch doll

i have to use loops please help me with this/
thankyou

mlseim
09-18-2011, 07:46 PM
http://stackoverflow.com/questions/797251/transposing-multidimensional-arrays-in-php



.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum