I believe if(empty($keywords)) or even if(!$keywords) will check if they are empty

Robbert van Andel 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] testing for empty array


I have an array $keywords, how do I test to see if it is empty?  $keywords == '' seems 
to throw out an error.


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


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

Reply via email to