Source code raw phps
<?php
class baseArray implements ArrayAccess
{
public function offsetSet($key, $value)
{
if (array_key_exists($key,get_object_vars($this)) ) {
$this->{$key} = $value;
}
}
public function offsetGet($key)
{
if (array_key_exists($key,get_object_vars($this)) ) {
return $this->{$key};
}
}
public function offsetUnset($key)
{
if (array_key_exists($key,get_object_vars($this)) ) {
unset($this->{$key});
}
}
public function offsetExists($offset)
{
return array_key_exists($offset,get_object_vars($this));
}
}
?>
Comments
There is currently no comment here.