<?php class Dictionary implements ArrayAccess { function offsetExists($offset) {} function offsetGet($offset) {} function offsetUnset($offset) {} function offsetSet($offset, $value) { var_dump($offset); } } $Dictionary = new Dictionary(); $Dictionary["12"] = 0xDEADBEEF; // int(12) $str = "12"; $Dictionary[$str] = 0xDEADBEEF; // string(2) "12"
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`