Answers for "how to check if arraay object not empty php"

PHP
2

array should not be empty php

$arr = array();

if(!empty($arr)){
  echo "not empty";
}
else 
{
  echo "empty";
}
Posted by: Guest on August-10-2020

Code answers related to "how to check if arraay object not empty php"

Browse Popular Code Answers by Language