php array is set but empty 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";
}