Answers for "php object empty check"

PHP
2

php check of object is empty

$arr = (array)$obj;
if (!$arr) {
    // do stuff
}
Posted by: Guest on September-23-2021
7

php empty object

$x = new stdClass();
Posted by: Guest on February-19-2020

Browse Popular Code Answers by Language