Re: checking if an array is empty

From: Date: Sun, 22 Sep 2002 01:09:16 +0000
Subject: Re: checking if an array is empty
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-117128@lists.php.net to get a copy of this message
thats the thing , the word Array is what it returns even though there was no input file. "Michael Sims" <mhsims@midsouth.rr.com> wrote in message news:dr4qougeer6vvf026fi7mrsoml1a867f2f@4ax.com... On Sun, 22 Sep 2002 01:13:08 +1000, you wrote: >how can i check if an array is currently empty , for instance i have a file >input field with an array name for multiple images, i need to check if there >was no file uploaded in that field name and ignore it in the loop I find that empty() works well to test if an array contains any elements...

« previous php.general (#117128) next »