- var_dump: documentation ( source)
<?php
class Test implements ArrayAccess {
public function offsetExists($off)
{
}
public function offsetUnset($off)
{
}
public function offsetSet($off, $el)
{
}
public function offsetGet($off)
{
var_dump($off);
}
}
$test = new Test();
$test['0'];