svetasmirnova
маленький монстрик
> $data['plugin_info']['silence_time'] = 2;
Без этого нельзя? И вообще, какая конечная задача?
Без этого нельзя? И вообще, какая конечная задача?
<?php
class SuperArray implements ArrayAccess {
private $store = NULL;
public function __construct() {
$this->store = new StdClass();
}
public function offsetExists($offset) {
return isset($this->store->$offset);
}
public function &offsetGet($offset) {
return $this->store->$offset;
}
public function offsetSet($offset, $value) {
return $this->store->$offset = $value;
}
public function offsetUnset($offset) {
unset($this->store->$offset);
}
}
$arr = new SuperArray();
$arr['dim1']['dim2'] = 'ok';
var_dump($arr);
?>