trying to understand offsetExists function in Zend/Registry.php -


 public function offsetexists($index)     {         return array_key_exists($index, $this);     } 

this taken zend/registry.php, question is: $this current object, right? here seems array? $this mean here?

you'll notice zend_registry extends arrayobject. allows used like array.

further reading - http://php.net/manual/en/class.arrayobject.php

the reason zend_registry overrides arrayobject::offsetexists() due bug - https://bugs.php.net/bug.php?id=40442


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -