- substr: documentation ( source)
- set_error_handler: documentation ( source)
<?php
function handler()
{
}
set_error_handler('handler');
class huh
{
public function __get($var)
{
$array = array();
$value = $array[$var];
$realVar = $var;
if (substr($var, -1) == 'a') {
}
if (isset($value)) {
$anotherValue = $var . 'a';
if ($value['a']) {
}
}
}
}
$one = new huh();
$two = new huh();
$items = new ArrayObject(array($one, $two));
unset($items[0]);
unset($items[0]->test);
$items[1]->test;