Lines Matching refs:offset
25 public function offsetExists($offset): bool {
26 echo "Existence of offset $offset checked for.", PHP_EOL;
27 return isset($this->array[$offset]);
30 public function offsetUnset($offset): void {
31 unset($this->array[$offset]);
32 echo "Offset $offset removed.", PHP_EOL;
35 public function offsetGet($offset) {
36 echo "Offset $offset retrieved.", PHP_EOL;
37 return $this->array[$offset];
40 public function offsetSet($offset, $value): void {
41 $this->array[$offset] = $value;
42 echo "Offset $offset set to $value.", PHP_EOL;