Re: if statement
| From: | Balwant Singh | Date: | Sat, 29 Jan 2005 04:32:06 +0000 |
| Subject: | Re: if statement | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38388@lists.php.net to get a copy of this message | ||
i may be wrong but as i understand that you want to check whether a
array holds any value or not --> for this u can use COUNT function of
array which will count the values of the array.
with best wishes
balwant
On Sat, 2005-01-29 at 06:29, Craig Hoffman wrote:
> Hi There,
> I am trying to write an if statement to see if an array has any values
> in it and if it does do something.
>
> for example:
> $ticklist2 = array("'$values")
>
> if (array_values(empty($ticklist2))) {
> do something
> } else {
> do something else
> }
>
> I just can't get this to work. Any help would be great.
> Thanks, Craig H.