Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check of object is empty

$arr = (array)$obj;
if (!$arr) {
    // do stuff
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #object #empty
ADD COMMENT
Topic
Name
5+1 =