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. ![]()
Unfortunately no one can be told what PunBB is - you have to see it for yourself.
You are not logged in. Please login or register.
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. ![]()
Use !empty($array)
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.