<?phpecho '<hr/>';$obj = (object) array('1' => 'foo');var_dump(isset($obj->{'1'})); // outputs 'bool(false)'var_dump(key($obj)); // outputs 'int(1)'?> 查看完整描述