1

Topic: Checking an array

Would the following:

$array = array();

if ($array)
{
    [ code ]
}

return true and run the code if no pairs were in the array, or would there actually have to be at least one key/value pair?


Cheers. smile

Re: Checking an array

Use !empty($array)

3

Re: Checking an array

Thanks. smile