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.. cheers, sands -----Original Message----- From: David Yee [mailto:[EMAIL PROTECTED]] Sent: segunda-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://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]