[php] Treat an object like an array

代码
interface AccessArray
{
function offsetSet($offset, $value);
function offsetGet($offset);
function offsetUnset($offset);
function offsetExists($offset);
}

interface Iterator
{
function current();
function next();
function key();
function rewind();
function valid();
}
原文地址:https://www.cnblogs.com/davidhhuan/p/1750049.html