Re: [PHP] Proper way to remove an element from an array

2007-07-11 Thread Richard Lynch
On Tue, July 10, 2007 4:23 pm, Dan wrote: I know in some languages there's a right way to remove an element from an array and other ways that will give you problems. In PHP can I just set $arrayname[key] = null? Or will I then end up with key = null as a value. I looked on php.net under

[PHP] Proper way to remove an element from an array

2007-07-10 Thread Dan
I know in some languages there's a right way to remove an element from an array and other ways that will give you problems. In PHP can I just set $arrayname[key] = null? Or will I then end up with key = null as a value. I looked on php.net under array functions for a bit and I didn't find

Re: [PHP] Proper way to remove an element from an array

2007-07-10 Thread Eric Butera
On 7/10/07, Dan [EMAIL PROTECTED] wrote: I know in some languages there's a right way to remove an element from an array and other ways that will give you problems. In PHP can I just set $arrayname[key] = null? Or will I then end up with key = null as a value. I looked on php.net under array

Re: [PHP] Proper way to remove an element from an array

2007-07-10 Thread Robert Cummings
On Tue, 2007-07-10 at 14:23 -0700, Dan wrote: I know in some languages there's a right way to remove an element from an array and other ways that will give you problems. In PHP can I just set $arrayname[key] = null? Or will I then end up with key = null as a value. I looked on php.net

Re: [PHP] Proper way to remove an element from an array

2007-07-10 Thread Dan
Thanks, this'll work. - Dan Eric Butera [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 7/10/07, Dan [EMAIL PROTECTED] wrote: I know in some languages there's a right way to remove an element from an array and other ways that will give you problems. In PHP can I just set

Re: [PHP] Proper way to remove an element from an array

2007-07-10 Thread tedd
At 2:23 PM -0700 7/10/07, Dan wrote: I know in some languages there's a right way to remove an element from an array and other ways that will give you problems. In PHP can I just set $arrayname[key] = null? Or will I then end up with key = null as a value. I looked on php.net under array

Re: [PHP] Proper way to remove an element from an array

2007-07-10 Thread Robert Cummings
On Tue, 2007-07-10 at 21:22 -0400, tedd wrote: At 2:23 PM -0700 7/10/07, Dan wrote: I know in some languages there's a right way to remove an element from an array and other ways that will give you problems. In PHP can I just set $arrayname[key] = null? Or will I then end up with key =

Re: [PHP] Proper way to remove an element from an array

2007-07-10 Thread tedd
At 9:30 PM -0400 7/10/07, Robert Cummings wrote: On Tue, 2007-07-10 at 21:22 -0400, tedd wrote: At 2:23 PM -0700 7/10/07, Dan wrote: I know in some languages there's a right way to remove an element from an array and other ways that will give you problems. In PHP can I just set