#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Any one can explain please?


    <?php
    $a1=array("Dog","Cat");
    $a2=array("Puppy","Kitten");
    print_r(array_map(null,$a1,$a2));
    ?>

    The output of the code above will be:

    Array (
    [0] => Array ( [0] => Dog [1] => Puppy )
    [1] => Array ( [0] => Cat [1] => Kitten )
    )
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2003
    Posts
    3,600
    Rep Power
    595
    Explain what? Two arrays are created then combined into a 2 dimensional array and printed.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.

IMN logo majestic logo threadwatch logo seochat tools logo