Re: More operators

From: Date: Thu, 22 Dec 2016 19:56:53 +0000
Subject: Re: More operators
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-325917@lists.php.net to get a copy of this message
Christoph M. Becker <mailto:cmbecker69@gmx.de> Tuesday, December 20, 2016 5:31 AM On 20.12.2016 at 06:47, Sam Hobbs wrote:
() not mentioned in "Array Operators", but is an operator for arrays, correct?
Do you mean [] and/or {}? These are called subscript operator by the PHP language specification[3]. I am new to PHP but not new to other languages such as C++. I would be embarrassed if I made that mistake. I should have said "array()" instead of just "()". Parentheses work differently than anywhere else when used in "array()", correct? If so then it should be made more clear in the documentation.


« previous php.general (#325917) next »