Re: [PHP] How to remove a variable from an array

2003-11-02 Thread David Otton
>>I have tried basically copying and pasting this, and adding a foreach >>loop. Inside this foreach loop, the array is split apart and I tried >>using unnset, but I couldn't get it to work, so I deleted the code. > >unset ($array[$index]) > >http://uk.php.net/unset There are examples in the manua

Re: [PHP] How to remove a variable from an array

2003-11-02 Thread David Otton
On Sun, 2 Nov 2003 14:06:31 -0500, you wrote: >I have an array variable that is set, then put into a session >variable. All is good so far, but how can I remove a specific variable >from the array? unset() >I have tried basically copying and pasting this, and adding a foreach >loop. Inside this

[PHP] How to remove a variable from an array

2003-11-02 Thread Jake McHenry
I have an array variable that is set, then put into a session variable. All is good so far, but how can I remove a specific variable from the array? I have tried basically copying and pasting this, and adding a foreach loop. Inside this foreach loop, the array is split apart and I tried using unns