[EMAIL PROTECTED]>
Cc: "'David Yee'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 12:07 PM
Subject: RE: [PHP] How to call method from another class
> > first create an instance of class B like this...
> >
> > $test
> first create an instance of class B like this...
>
> $test = new classB();
>
> Now, u can refer to any function or method of classB like this:
>
> $test->hello(); // where hello() is a method of classB..
That's not what the original question was, though. David (I think, unless
I got my nested
Got it- thanks Sandeep.
David
- Original Message -
From: "Sandeep Murphy" <[EMAIL PROTECTED]>
To: "'David Yee'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 11:12 AM
Subject: RE: [PHP] How to call method from
nda-feira, 28 de Janeiro de 2002 17:19
To: [EMAIL PROTECTED]
Subject: [PHP] How to call method from another class
If I have a PHP class (let's say it's called ClassA), how do I call a method
from another class (ClassB) within ClassA? Thanks.
David
--
PHP General Mailing List (http:
If I have a PHP class (let's say it's called ClassA), how do I call a method
from another class (ClassB) within ClassA? Thanks.
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the l
5 matches
Mail list logo