Posted by Michael Fesser on 01/22/08 19:44
..oO(myzmlm@gmail.com)
>Do you have idea why I got Fatal error: Call to undefined function
>test() in sss.php error message when I try to call $remo->test();?
In your code you're calling
print $remo.test();
instead of
print $remo->test();
which is something completely different. The second calls the correct
method, while the first one tries to concatenate $remo with the result
from the function test(), which obviously doesn't exist. That's why PHP
complains about an unknown function and not about an unknown method.
Micha
Navigation:
[Reply to this message]
|