Re: More operators
[email protected] (Sam Hobbs)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
> Christoph M. Becker <mailto:[email protected]> > 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.