RE: [PHP] basic class question

From: Date: Wed, 28 Jun 2000 19:10:19 +0000
Subject: RE: [PHP] basic class question
Groups: php.general 
Request: Send a blank email to php-general+get-3642@lists.php.net to get a copy of this message
just create an instance of the class an use it! class Foo2 { function f2 { objFoo = new Foo(); objFoo->f1(); ... } } Eduardo Jordán G. Webmaster -----Original Message----- From: Kevin Beckford [SMTP:kbeckford@bigorbit.com] Sent: Wednesday, June 28, 2000 1:15 PM To: GPHP Subject: [PHP] basic class question I have a class method and I want to use another classes method inside of it. ie: class Foo { function f1 { // code } } class Foo2 { function f2 { // here I want to use f1 } } How is this done? Are there multiple ways, and if so what are they? ______________________________________ Kevin Beckford Programmer Big Orbit - Specializing in new media for youth www: http://www.bigorbit.com email: kbeckford@bigorbit.com [t] 416.516.0705 [f] 416.516.9256 "I lay on my belly beside the river of knowledge, and fill my belly until it bursts..." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#3642) next »