php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #36146 Language syntax: using arrays returned from functions inline.
Submitted: 2006-01-24 19:20 UTC Modified: 2006-04-03 13:02 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: rolf at winmutt dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.1.2 OS: any
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: rolf at winmutt dot com
New email:
PHP Version: OS:

 

 [2006-01-24 19:20 UTC] rolf at winmutt dot com
Description:
------------
Recently support for returned objects were added, eg:

somefunc()->someotherfunc();

It would be nice to see the same for arrays :

$x = somefunc()[arraykey];

Especially for simpleXML xpath return values:

echo $xml->xpath('nodes/')[1];


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-03 13:02 UTC] tony2001@php.net
Duplicate of bug #23022.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 26 01:00:03 2025 UTC