PHP questions?

Discussion in 'PHP' started by benivolent, Jan 28, 2011.

  1. #1
    How do I remove an element from an array without changing the index values for the rest of the array?
     
    benivolent, Jan 28, 2011 IP
  2. allthewebsites

    allthewebsites Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    using unset()

    Hope that helps
     
    allthewebsites, Jan 28, 2011 IP
  3. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #3
    unset($arr[$key]);
    PHP:
     
    danx10, Jan 28, 2011 IP
  4. captain_kuro

    captain_kuro Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    indeed unset()
     
    captain_kuro, Jan 29, 2011 IP