Re: [PHP] undefining an array element

2003-01-05 Thread David T-G
Tom, et al -- ...and then Tom Rogers said... % % Hi, Hi! % % Sunday, January 5, 2003, 9:46:05 PM, you wrote: % ... % DTG> how do I undefine that element? % % unset($a1['b']); Ah! And here I was looking for 'undefine' (and boy o boy are there a lot of occurrences of *that* in the manual!).

Re: [PHP] undefining an array element

2003-01-05 Thread Tom Rogers
Hi, Sunday, January 5, 2003, 9:46:05 PM, you wrote: DTG> Hi, all -- DTG> If I have an array like DTG> $a1 = array ( 'a' => 'aaa' , 'b' => 'bbb' , 'c' => 'ccc' ) ; DTG> and I want to completely remove 'b' from it (not just set $a1[b] to ""), DTG> how do I undefine that element? DTG> TIA & HA

[PHP] undefining an array element

2003-01-05 Thread David T-G
Hi, all -- If I have an array like $a1 = array ( 'a' => 'aaa' , 'b' => 'bbb' , 'c' => 'ccc' ) ; and I want to completely remove 'b' from it (not just set $a1[b] to ""), how do I undefine that element? TIA & HAND :-D -- David T-G * There is too much animal courage in (