When I am trying to determine if an empty array is greater than 0, but returns true. why php empty array greater than 0 ?
$a = [];
if (is_array($a) && count($a) > 0) {
die('array');
} elseif ($a > 0) {
die('ok');
}
it's output 'ok', Can anyone tell me why this is?