<?php class Dog{ public $name; } $D = new Dog(); $arr = []; $arr['n'] = $D->name; $res = $arr['n'] == ''; var_dump($res);
You have javascript disabled. You will not be able to edit any code.