lundi 20 juillet 2020

php conditional array statement, how can I do it?

Data comes frm WordPress database, If array have value then do something, else do something, how can I do it? I tried below way but its not working? Thanks

$array_value = array(
    array("")
);

if(empty($array_value)){
  echo "empty array";
}
else{
  echo "array have value";
}

Aucun commentaire:

Enregistrer un commentaire