Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,531
    Thanks
    8
    Thanked 1,091 Times in 1,082 Posts


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •