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:28:23 +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 9 10 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20242@lists.php.net to get a copy of this message | ||
On Mon, 05 Jun 2000, Thies C . Arntzen wrote:
> On Mon, Jun 05, 2000 at 08:16:30AM -0500, Andrei Zmievski wrote:
> > 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
>
> array("Class" , "methodname") would be even cooler
Why?
-Andrei
* E Pluribus UNIX. *