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: | Andi Gutmans | Date: | Mon, 05 Jun 2000 19:21:40 +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-20277@lists.php.net to get a copy of this message | ||
At 08:16 AM 6/5/00 -0500, Andrei Zmievski wrote:
On Sun, 04 Jun 2000, Thies C . Arntzen wrote:Easiest will be to make array("Class", "methodname") call Class::methodname Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/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 astring thenuse it as the classname.yeah, baby!How about this: array($obj, "methodname") will call $obj->methodname() "Class::methodname" will call that static method