I have a dynamically generated array. sometimes it's value is null, when it is null the browser gives an error. therefore I want to check if the array is empty. when array is empty i use
echo var_dump($myarray);
then browser echoing following
i want to identify this kind of situation i use
array(0) { }
i try flowing method but it didn't work
$errors = array_filter($myarray);
if( !empty($errors)){
//do
}
also i try
if ($myarray==''){
//not working
}