Re: [PHP-PEAR] variable method names

[email protected] (Kendrick Vargas)
Newsgroups php.pear
Message-ID <[email protected]>
On Tue, 13 Feb 2001, Chuck Hagenbuch wrote:

> Quoting Kendrick Vargas <[email protected]>:
>
> > I've needed something like this since 4.0RC1 has been out, and there
> > hasn't been anything stable in the way of an implementation that can do
> > what I need to do. eval() used to work (kinda), but it no longer returns
> > the return value from the called function, so it's also useless. At the
> > time 4.0RC1 came about, there was no call_user_method().
>
> Maybe I missed something, but what's wrong with $this->$method()?

when I tried it originally (some pre-release version of 4.0) it didn't
work. As for the syntax, I'm not a school-educated programmer, so I'm not
sure what would be correct :-)
			-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 ---+
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.