Posted by myzmlm on 01/22/08 19:47
On Jan 22, 2:44 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(myz...@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
Thanks Micha. Just new to PHP and forgot about the concatenation
always. Appreciate it.
[Back to original message]
|