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: | thies at digicol dot de | Date: | Mon, 05 Jun 2000 13:24:53 +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 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20241@lists.php.net to get a copy of this message | ||
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
>
> ?
>
> -Andrei
>
> "Computers are useless. They can only give you answers."
> --Pablo Picasso
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany