Is posible to call a class method from anoter class?

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Is posible to call a class method from anoter class?
Groups: php.general 
Request: Send a blank email to php-general+get-20443@lists.php.net to get a copy of this message
Hello, I would like to know if is posible to call a class method from another diferent class. Also want to proper method to access data from another class. class A { var $array; function foo() { } } class B { var $data1; function B { foo(); // this is foo defined within class A echo $array; //this is also defined within class A } } Please response direct to my e-mail since I subscribed to php-general-digest list only. Thank you!!! ------------------- Eduardo Jordan Webmaster - Impsat ------------------------------------------------- Interactive si responde Este mensaje fue enviado desde: http://webmail.interactive.net.ec

« previous php.general (#20443) next »