Re: If array()
| From: | Philipp Schwarz | Date: | Tue, 10 Oct 2006 08:32:46 +0000 |
| Subject: | Re: If array() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242889@lists.php.net to get a copy of this message | ||
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: p.schwarz@comtrance.net 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