Re: testing for empty array
| From: | Kyle Gibson | Date: | Wed, 27 Nov 2002 01:16:14 +0000 |
| Subject: | Re: testing for empty array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126221@lists.php.net to get a copy of this message | ||
I have an array $keywords, how do I test to see if it is empty? $keywords == '' seems to throw out an error.Maybe... if(count($keywords) <= 0) { //... } -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/