- var_dump: documentation ( source)
<?php
class O implements ArrayAccess {
public function offsetSet($offset, $value) {}
public function offsetExists($offset) { return true; }
public function offsetUnset($offset) {}
public function offsetGet($offset) { return true; }
}
$o = new O;
var_dump(array_key_exists('foo', $o));