Re: [PHP-PEAR] variable method names

[email protected] (John Donagher)
Newsgroups php.pear
Message-ID <[email protected]>
There is a call_user_method() function in the current development version of
CVS, which will make it into the next release.

I'm not sure if support via language operators like you listed below will be
present..

John

On Tue, 13 Feb 2001, Kendrick Vargas wrote:

> I was wondering what would be the correct way to write a variable method
> name within a class function:
> 
> 	$this->$method($value);
> 
> or
> 
> 	$this->{$method}($value);
> 
> ? Many thanks in advance :-)
> 			-peace
> 
> --- BEGIN GEEK CODE BLOCK ----------+----------
> GAT d- s:+ !a C++$ UL/S/I/B++++$ P+ | "In the ongoing battle between objects
> L++ E- W+(+++) N K-  w(---)  O-- M@ |  made of aluminum  going hundreds of
> V(--) PS+++  PE Y+ PGP@ t++ 5 X+ R- |  miles per hour and the ground going
> tv+ b- DI++++  D+(+++) G  e>++ h--- |  zero,  the  ground has yet  to lose."
> r++ z+>+++ - END GEEK CODE BLOCK ---+
> 
> 
> 

-- 

John Donagher
Application Engineer
Intacct Corp. - Powerful Accounting on the Web
408-395-0989
720 University Ave.
Los Gatos CA 95032
www.intacct.com

Public key available off http://www.keyserver.net
Key fingerprint = 4024 DF50 56EE 19A3 258A  D628 22DE AD56 EEBE 8DDD
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.