Re: [PHP] Re: More operators
[email protected] (Sam Hobbs)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
[Note that my email client switched the order of things (strange) but apparently Alain was replying to Christoph who replied to me.] > Alain Williams <mailto:[email protected]> > Tuesday, December 20, 2016 5:41 AM > > It doesn't really matter if it is/is-not an operator; people will > expect to find > it documented in the list of operators --- the explanation might well > start by > saying that it is not an operator. > > Christoph M. Becker <mailto:[email protected]> > Tuesday, December 20, 2016 5:31 AM > I'm not sure whether => should be regarded an operator. It appears to > be rather a syntactic token for array-element-initializer[1] and > foreach-key[2]. I think that would help for those of us familiar with other languages at least. Imagine looking at a program using "=>". We should first read a book about PHP but it would help if the documentation would reduce the need for a book as much as possible. If "=>" were listed among operators then it would help many of us to find the relevant documentation.