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
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: 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

Pull Requests

History

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