Answers for "hwo to check an array is empty or not in klarave pyhp"

PHP
3

laravel check if array is empty

//for get() array methods
if($data_array->isEmpty())
{dd('EMPTY');}
else
{dd('NOT EMPTY');}

//for other array
if (count($data_array) > 0) 
{dd('EMPTY');}
else
{dd('NOT EMPTY');}
Posted by: Guest on October-29-2020

Code answers related to "hwo to check an array is empty or not in klarave pyhp"

Browse Popular Code Answers by Language