Hi Johannes,

<?
    $o->foo = "foo";        $o->foo(); //Example 1
    $o->bar = function(){}; $o->bar();  //Example 2
?>

The example 1 must not work, because PHP tries to call $o->foo() as a
function, but not $o->foo as description for the function.

To make example 2 working, the declaration has to be changed.

Thanks,
--
(c) Kenan Sulayman
Freelance Designer and Programmer

Life's Live Poetry
http://MyJurnal.tk/

Reply via email to