Answers for "empty object check in php"

PHP
1

php check of object is empty

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

Browse Popular Code Answers by Language