check if array is empty php

36

if (empty($array)) {
     // list is empty.
}
$arr = array();

if(!empty($arr)){
  echo "not empty";
}
else 
{
  echo "empty";
}

Comments

Submit
0 Comments