php check of object is empty

58

php check of object is empty -

$arr = (array)$obj;
if (!$arr) {
    // do stuff
}

Comments

Submit
0 Comments