array should not be empty php
snippet in php

array empty check in php

user1499

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

array should not be empty php

user1324

$arr = array();

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

check if array is empty php

user757

bool empty( $var )