Re: [PHP4BETA] Is there an equivalent to GetObject() in PHP4?
| From: | Zeev Suraski | Date: | Mon, 16 Aug 1999 21:09:23 +0000 |
| Subject: | Re: [PHP4BETA] Is there an equivalent to GetObject() in PHP4? | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3460@lists.php.net to get a copy of this message | ||
Because objects in PHP cannot be expressions - they must be variables. You must first assign $test->getClass() to a variable, and only then use toString() on it.
Zeev
At 21:43 16/08/99 , T.R.Tielkes wrote:
Just one more autoreply: why do I get: Parse error: parse error in D:\www\demo.php4 on line 11 when trying to do this: $test = new COM("MyProgId"); print( $test->getClass()->toString() ); ? This code works in ASP and WSH: <% Dim test test = Server.CreateObject("MyProgId"); %> <%= test.getClass().toString() %> btw Great job, guys! (this COM interface) -- PHP 4 Beta-- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il