yeh wicked thanks

-----Original Message-----
From: Michael Sims [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 22, 2002 11:48 AM
Cc: electroteque
Subject: Re: [PHP] checking if an array is empty

On Sun, 22 Sep 2002 11:09:16 +1000, you wrote:

>thats the thing , the word Array is what it returns even though there was
>input file.

Oh, I see.  Without seeing your code, the best recommendation I have
is to loop through the array and remove the empty elements, then check
to see if the array is empty, something like this:

if (is_array($array)) {
  foreach ($array as $key => $element) {
    if ($element == "") {

if (empty($array)) {

Sorry if I'm still misunderstanding...

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to