"OOzy Pal" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dears,
>
> How can I remove empty cells/places in an array. For
> example:
>
> a[1]='John';
> a[2]='Mike';
> a[3]='Lisa';
> a[4]='';
> a[5]='';
>
> How can I remove a[4] & a[5], so the array is only
>
> a[1]='John';
> a[2]='Mike';
> a[3]='Lisa';

unset($a[4]);

Regards, Torsten Roehr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to