我需要能够像这样设置我的对象:
$obj->foo = 'bar';
然后在设置之后我需要以下是真的
if($obj['foo'] == 'bar'){ //more code here }
php arrays
arrays ×1
php ×1