Wednesday 31 October 2007 7:12:26 pm
Is there a neat way to test if an array is empty? I'm trying to make a heading not appear if an array of fetched items doesn't contain any items. I realise that you could run a foreach loop and then do a has_content test on the first item, but this seems clumsy - is this the only way?
Paul Bolger
|