Try this:

if (is_array($array) && count($array)) {
   ...
}

John Taylor-Johnston schrieb:
How can I use "if" to see an array contains something?

if ($array()) does not work, of course.

John



--
Mit freundlichen Grüßen

Philipp Schwarz
-------------------------------------------------
comtrance
E-Mail:     [EMAIL PROTECTED]
Internet:   http://www.comtrance.net
Telefon:    +49 (211) 27159 - 20
Fax:        +49 (211) 54423 - 05

Anschrift:  comtrance GmbH
           In der Steele 20
           40599 Düsseldorf

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

Reply via email to