unset($a['element2']);
http://www.php.net/manual/en/function.unset.php
> 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.
--
Linux: Because rebooting is for
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
2 matches
Mail list logo