Podrias probar lo siguiente:
<?php
$array = array( "hi", "world", "hello");
print_r(array_count_values($array));
?>
o prueba
if(sizeof($result) > 0){
echo "array size is greater then zero";
}else{
echo "array size is zero";
}
Podrias probar lo siguiente:
<?php
$array = array( "hi", "world", "hello");
print_r(array_count_values($array));
?>
o prueba
if(sizeof($result) > 0){
echo "array size is greater then zero";
}else{
echo "array size is zero";
}