Newbie: element index array
| From: | Michael Wai | Date: | Sun, 24 Nov 2002 09:23:47 +0000 |
| Subject: | Newbie: element index array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-125772@lists.php.net to get a copy of this message | ||
If I declared an element indexed array and put some values into it:
$a['element1'] = array('btime' => '19D', 'etime' =>
'22D', 'dayname' => 4);
$a['element2'] = array('btime' => '12D', 'etime' =>
'20D', 'dayname' => 2);
$a['element3'] = array('btime' => '15D', 'etime' =>
'17D', 'dayname' => 3);
I would like to ask that how can I completely delete the $a['element2'] in
the array? That's mean I will get 'false' in 'isset($a['element2'])
after
the delete process is taken place.
Thanks for your help.
Regards,
Michael Wai