lundi 4 avril 2016

is there any difference between if(!$array) and if(empty($array))

Is there a case where doing this?

if(!$array) {
//... do stuff
}

Would produce different results than this?

if(empty($array)){
//... do stuff
}

Aucun commentaire:

Enregistrer un commentaire