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

    Join Date
    Jun 1999
    Location
    Olympia, WA, USA
    Posts
    13
    Rep Power
    0
    Simple question...
    I need to delete a single element from a one dimensional array. something like...

    somefunctionname $arrayname[$key];

    does anyone know what somefunctionname is or how this is done?

    ------------------
    Luke Bowerman
    new media arts
    www.newmediaarts.org
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,642
    Rep Power
    4476
    look at array_splice() in the php manual. it's only for php4 though...
    http://www.php.net/manual/function.array-splice.php

Similar Threads

  1. Printing related elements from a multi-dimensional array
    By lisamar1 in forum Perl Programming
    Replies: 3
    Last Post: February 16th, 2004, 10:11 AM
  2. Replies: 2
    Last Post: January 28th, 2004, 12:06 AM
  3. sort: find duplicate string elements in array
    By sciencelife in forum Java Help
    Replies: 3
    Last Post: January 27th, 2004, 01:29 PM
  4. Replies: 2
    Last Post: December 1st, 2003, 12:15 AM
  5. multi dimensional arrays - Can't grasp how to?
    By Kaleina in forum PHP Development
    Replies: 17
    Last Post: November 5th, 2003, 03:18 PM

IMN logo majestic logo threadwatch logo seochat tools logo