|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-18 07:57 UTC] derick@php.net
[2004-10-30 01:05 UTC] cpks at btopenworld dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
Description: ------------ I had been assuming that the expression $a = functioncall(), $a{operator} is equivalent to functioncall(){operator} but this appears to be the untrue, at least in the case of functions returning array values. Be kind to me. I'm sure I'm being stupid. Reproduce code: --------------- echo getdate()["year"]; Expected result: ---------------- 2004 //(or whatever year it is) Actual result: -------------- parse error: unexpected "[", expecting "," or ";"