Re: Re: [PHP4BETA] cvs: php4 / NEWS TODO php4dllts.dsp php4ts.dsp /ext/mysql/libmysql/ libmysql.dsp /ext/standard/ array.c basic_functions.c
/sapi/apache/ php4apache.dsp /sapi/isapi/ php4isapi.dsp /sapi/nsapi/ php4nsapi.dsp
| From: | Andrei Zmievski | Date: | Mon, 05 Jun 2000 13:16:30 +0000 |
| Subject: | Re: Re: [PHP4BETA] cvs: php4 / NEWS TODO php4dllts.dsp php4ts.dsp /ext/mysql/libmysql/ libmysql.dsp /ext/standard/ array.c basic_functions.c /sapi/apache/ php4apache.dsp /sapi/isapi/ php4isapi.dsp /sapi/nsapi/ php4nsapi.dsp |
||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20240@lists.php.net to get a copy of this message | ||
On Sun, 04 Jun 2000, Thies C . Arntzen wrote:
> > Having both is probably the right thing. Detect what the first array
> > element is. If it's an object then use it as object; if it is a string then
> > use it as the classname.
>
> yeah, baby!
How about this:
array($obj, "methodname") will call $obj->methodname()
"Class::methodname" will call that static method
?
-Andrei
"Computers are useless. They can only give you answers."
--Pablo Picasso