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.
You are not logged in. Please login or register.
PunBB Forums → Programming → 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.
Use !empty($array)
PunBB Forums → Programming → Checking an array
Powered by PunBB, supported by Informer Technologies, Inc.