Prüfen, ob Array Elemente hat

Gibt es eine Funktion, die prüft, ob ein Array Elemente hat?

MFG
Alti

http://de.php.net/manual/de/function.count.php

du kannst mit count den inhalt des arrays zählen, ist das array leer, kannst du dementsprechend drauf reagieren

Danke das reicht schon.

MFG
Alti

if(empty($array)){ ...

Reicht auch.

Es reicht sogar nur das array:
[php]
if (array()) print ‚foo‘; //das wird nicht ausgegeben
if (array(‚foo‘)) print ‚bar‘; //aber das wird ausgegeben!
[/php]