#1
  1. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    Does PHP provide a PUSH method for
    array construction?

    I've found no reference to PUSH.

    Is it not a part of the API, or is it just so common they saw no reason to include it's mention??

    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    Yes,

    Php has an array_push() function for array construction.

    eg:

    <?
    $values = array (1, 2,3,4);
    array_push($values, 5, 6);

    //Now value returns 1,2,3,4,5,6
    ?>




    ------------------
    SR -
    shiju.dreamcenter.net

    "The fear of the LORD is the beginning of knowledge..."
  4. #3
  5. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    Cool, makes sense.. guess I was really looking in the wrong places..

    Anyway, thanks a bunch.

    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.

IMN logo majestic logo threadwatch logo seochat tools logo