That's not going to 'empty' the array it's going to undefine it. Just overwrite the array with a new empty array like:
$a = array(); That keeps the variable an array variable type and is of course empty. HTH, Jason k Larson Justin French wrote:
on 15/01/03 7:52 AM, Scott Fletcher ([EMAIL PROTECTED]) wrote: >How to do the proper way of emptying hte array?? > >Example... > >$a[0] = "test1"; >$a[1] = "test2"; >$a[2] = "test3"; >$a[3] = "test4"; > >$a = ""; <-- Is this hte proper way to do it???? unset($a); http://php.net/unset Justin
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php