php check of object is empty

Solutions on MaxInterview for php check of object is empty by the best coders in the world

showing results for - "php check of object is empty"
Jonah
26 Apr 2019
1	if($users->count()==0){
2					$result->errer = "not exist";
3				}
Hanna
07 Jul 2020
1$arr = (array)$obj;
2if (!$arr) {
3    // do stuff
4}
5