Hi Chris,

Zend Engine 2.0 supports this syntax, and will be included with PHP 5.  You
can read all about zend 2 and its other improvements at http://www.zend.com

Greg
--
phpDocumentor
http://www.phpdoc.org

"Chris McCluskey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]..
.
Hi there, I've been using PHP for about 2 years now and absolutely love
it!  Our company uses it as our main development language, so far
though, there is one thing that has been annoying me for a while now..
the following line of code will not work:

$object->function1($parameter)->function2();

I receive a parse error when i try to call another function off of the
object that function1 returns.  I know this is possible in java:

object.function1(parameter).function2();

VB:

object.function1(paremeter).function2

and i'm sure C++, although i'm not too familiar with that language.

My question is, will or is there any support for this kind of call in
PHP?  or is there another way that i should be doing it?  as for now,
here is my work around:

$tmp =& $object->function1($parameter);
$tmp->function2();

Thank you in advance!

-Chris

-----------------------------------
            _  _  _          _
           |'|(_)|_)(_)|_(_)`-,
                          * * *
        ------------------------------------
Chris McCluskey    Web Applications Engineer
Modulus, LLC
1720 Willow Creek Circle, Suite 520
Eugene, OR 97402
Email: [EMAIL PROTECTED]
Voice: +1 (541) 434-1024
Web..: http://www.modulusgroup.com <http://www.modulusgroup.com/>
============================================
The contents of this transmission may be
confidential in nature and should be
directed only to the person to whom it is
addressed. Do not read, copy, or disseminate
this material unless you are the intended
recipient.  If this transmission reached you
in error, please forward the e-mail to the
sender to advise, then destroy the
transmission you received.  Thank you.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to