Lines Matching refs:index
20 function offsetExists($index) {
21 echo __METHOD__ . "($this->element, $index)\n";
22 return array_key_exists($index, $this->element);
25 function offsetGet($index) {
26 echo __METHOD__ . "(Array, $index)\n";
27 return isset($this->element[$index]) ? $this->element[$index] : NULL;
30 function offsetSet($index, $value) {
31 echo __METHOD__ . "(Array, $index, $value)\n";
32 $this->element[$index] = $value;
35 function offsetUnset($index) {
36 echo __METHOD__ . "(Array, $index)\n";
37 unset($this->element[$index]);
50 function offsetExists($index)
52 return array_key_exists($index, $this->person);
55 function offsetGet($index)
57 return new ArrayReferenceProxy($this, $this->person[$index]);
60 function offsetSet($index, $value)
62 $this->person[$index] = $value;
65 function offsetUnset($index)
67 unset($this->person[$index]);