Ejemplo n.º 1
0
<?php

class foo extends ArrayObject
{
    public function seek($key)
    {
        echo __METHOD__ . "({$key})\n";
        throw new Exception("hi");
    }
}
$test = new foo(array(1, 2, 3));
try {
    $test->seek('bar');
} catch (Exception $e) {
    echo "got exception\n";
}
?>
===DONE===