if array empty then show some other data code example
Example: array should not be empty php
$arr = array();
if(!empty($arr)){
echo "not empty";
}
else
{
echo "empty";
}
$arr = array();
if(!empty($arr)){
echo "not empty";
}
else
{
echo "empty";
}