mardi 15 décembre 2015

Is there any better way of checking a variable is array and is not empty?

I want to know in php is there any better way of knowing a variable is array and is not empty. I've been using this

 if (!empty($collection) && is_array($collection)) {

}

Aucun commentaire:

Enregistrer un commentaire