Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-18-2011, 07:06 PM   PM User | #1
ssscot
New to the CF scene

 
Join Date: Sep 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ssscot is an unknown quantity at this point
Question please help me with a program

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
ssscot is offline   Reply With Quote
Old 09-18-2011, 07:46 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,045
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
http://stackoverflow.com/questions/7...-arrays-in-php



.
mlseim is offline   Reply With Quote
Reply

Bookmarks

Tags
array, table

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:43 PM.


Advertisement
Log in to turn off these ads.