<?php // https://stackoverflow.com/a/79816463/367456 $myArray = new class ([]) extends ArrayObject { /* implement from ArrayAccess to explore further */ }; // ArrayAccess allows to treat an object as an array var_dump(isset($myArray['key'])); // bool(false) -- offsetExists() $myArray['key'] = 'value'; // -- offsetSet() var_dump($myArray['key']); // string(5) "value" -- offsetGet() var_dump(isset($myArray['key'])); // bool(true) -- offsetExists() unset($myArray['key']); // -- offsetUnset() var_dump(isset($myArray['key'])); // bool(false) -- offsetExists()
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`