php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #26933 Function return object
Submitted: 2004-01-16 07:48 UTC Modified: 2006-04-03 12:33 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: jacob at lindborg dot dk Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.0.0b3 (beta3) OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jacob at lindborg dot dk
New email:
PHP Version: OS:

 

 [2004-01-16 07:48 UTC] jacob at lindborg dot dk
Description:
------------
In the new PHP 5 you can do something like this after a function call wich returns a object...

$test = getObject()->test;

but why can't you do the same with an array?

$test = getObject()['test'];


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-03 12:33 UTC] tony2001@php.net
See bug #23920.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 21:01:33 2024 UTC