Re: How to call a function from $classname

From: Date: Tue, 15 Mar 2005 15:44:40 +0000
Subject: Re: How to call a function from $classname
References: 1  Groups: php.general php.general 
Request: Send a blank email to php-general+get-210800@lists.php.net to get a copy of this message
> What do I have to do to call a function from $classname? > > Like: $classname->test( ); Two methods: First: $classname = new ClassName(); $classname->test(); Second: ClassName::test(); -- -Dan Joseph "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

« previous php.general (#210800) next »