public function ArrayObject::__isset in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-stdlib/src/ArrayObject.php \Zend\Stdlib\ArrayObject::__isset()
Returns whether the requested key exists
Parameters
mixed $key:
Return value
bool
File
- vendor/
zendframework/ zend-stdlib/ src/ ArrayObject.php, line 76
Class
- ArrayObject
- Custom framework ArrayObject implementation
Namespace
Zend\StdlibCode
public function __isset($key) {
if ($this->flag == self::ARRAY_AS_PROPS) {
return $this
->offsetExists($key);
}
if (in_array($key, $this->protectedProperties)) {
throw new Exception\InvalidArgumentException('$key is a protected property, use a different key');
}
return isset($this->{$key});
}