Posted by gosha bine on 08/13/07 16:36
On 13.08.2007 17:32 zzapper wrote:
> Hi,
> Have tried to google this without 100% satisfaction.
>
> A function reads a mysql record into an array and returns it, if it
> doesnt exist it returns '' or FALSE.
>
> What ways do I have to test that my returned array is not empty
if(array_filter($ary))
$ary contains at least one non-empty element
else
$ary contains 0 elements or all elements are empty
--
gosha bine
makrell ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi
[Back to original message]
|