php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #8817 $foo->getbar()->getfoobar()->method()
Submitted: 2001-01-19 22:24 UTC Modified: 2004-05-04 20:51 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: tenshi at cinter dot de Assigned: andi (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.4 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tenshi at cinter dot de
New email:
PHP Version: OS:

 

 [2001-01-19 22:24 UTC] tenshi at cinter dot de
Hi there.

It would imho be useful to be abeled to code
$foo->getbar()->getfoobar()->method();
instead of having to save each return value into a variable like:
$bar = $foo->getbar();
$foobar = $bar->getfoobar();
$foobar->method();

Thanx.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-20 06:58 UTC] waldschrott@php.net
we know :)
it is not available yet 
 [2004-05-04 20:47 UTC] travis at codegoat dot com
I am just wondering if this will ever be brought out of `suspended` is there any intention on putting this in?

If so, is there a timeline attached? I will assume there isn't , but it would be awesome to have this functionality!
 [2004-05-04 20:51 UTC] wez@php.net
Fixed in PHP 5.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC