go to bug id or search bugs for
It might be better to say that "array(..)" is the 'array creation operator' and mostly use "array(..)" instead of "[..]" in examples. Most existing PHP code uses "array(..)" way more than "[..]" (because "[..]" was added very recently), and I think using "array(..)" as the 'array creation operator' helps disambiguate it from the subscript operator ("").
Add a Patch
Add a Pull Request
There was disagreement here:
"Both notations are permitted, and unless we’re going to deprecate one of them, we should be able to use both. If that causes a significant problem, then IMHO the wrong spelling was chosen for the new/alternate notation."
I am not a native speaker, but wouldn't "the xy operator" imply some sort of uniqueness in a general sense?
Especially as "the array operator " is also "the subscript operator ".
I am thinking along the lines of "when using  as the(an?) array operator". But that sounds less succinct and somehow less precise.
I'd say "the array literal syntax". It's a literal, not an operator.
I don't think we need to change the examples -  is a legit feature of PHP and should not be avoided, unless it is confusing in a specific case. Not sure though which changes you ask for in array-creation-operator - could you elaborate?
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.