#46590 [Asn->Csd]: several operator precedence like things are not clear

From: Date: Fri, 20 Nov 2009 12:02:36 +0000
Subject: #46590 [Asn->Csd]: several operator precedence like things are not clear
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3283@lists.php.net to get a copy of this message
ID: 46590 Updated by: vrana@php.net Reported By: chx1975 at gmail dot com -Status: Assigned +Status: Closed Bug Type: Documentation problem PHP Version: Irrelevant Assigned To: torben New Comment: Everything documented. Previous Comments: ------------------------------------------------------------------------ [2009-09-10 05:52:23] torben@php.net An addition to the Variable Variables section has been made to address your first concern, along with a note in the Strings section on how this may be done inside an interpolated string. Please note that the documentation is not generated from the XML sources every day, so it may be a little while before the change shows up in the online documentation. Your second example is explained on the PHP 5 Objects and Classes Basics page: http://www.php.net/manual/en/language.oop5.basic.php Your third example is explained on the Variable Functions page: http://ca.php.net/manual/en/functions.variable-functions.php I am leaving this bug open, however, and assigning it to myself as a reminder to look into creating a Variable Members section to deal with this specifically in a more centralized location. Thanks for the note and for helping us make the documentation better! ------------------------------------------------------------------------ [2008-11-17 06:13:40] chx1975 at gmail dot com Description: ------------ What does $foo->$bar[3] mean? is $bar an array, of which we take the third element and the string found therein is the name of the property of the $foo object. Or is $foo-$bar an array of which we take the third element? Wthat does new $foo(3) mean? Do we call the function name found in $foo with the argument 3 or we create a class which name is found in $foo and the constructor gets the argument 3? What does $foo->$bar(3) mean? I wont go into the same painstaking detail as above but I think it's clear that there is a need for the precedence of () and -> be documented. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46590&edit=1

« previous php.doc.bugs (#3283) next »