Bug #67781 [Com]: Use array() instead of square brackets

From: Date: Thu, 03 Mar 2022 01:27:46 +0000
Subject: Bug #67781 [Com]: Use array() instead of square brackets
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240118@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67781&edit=1 ID: 67781 Comment by: net at danguifofana487 dot com Reported by: joelm@php.net Summary: Use array() instead of square brackets Status: No Feedback Type: Bug Package: PHP Language Specification PHP Version: PHP-5.6 Block user comment: N Private report: N New Comment: welcame on bug report presenter la page,connexion donner le site web de php.net Previous Comments: ------------------------------------------------------------------------ [2015-07-12 04:22:17] php-bugs at lists dot php dot net 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. ------------------------------------------------------------------------ [2015-06-28 21:54:01] stas@php.net 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? ------------------------------------------------------------------------ [2014-08-06 21:58:16] ajf@php.net I'd say "the array literal syntax". It's a literal, not an operator. ------------------------------------------------------------------------ [2014-08-06 21:56:18] fa@php.net 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. ------------------------------------------------------------------------ [2014-08-05 17:10:39] joelm@php.net 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." ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=67781 -- Edit this bug report at https://bugs.php.net/bug.php?id=67781&edit=1

« previous php.bugs (#240118) next »