1.2.637. List With Keys¶
Setting keys when using list() is a PHP 7.1 feature.
<?php
// PHP 7.1 and later only
list('a' => $a, 'b' => $b) = ['b' => 1, 'c' => 2, 'a' => 3];
?>
1.2.637.1. Connex PHP features¶
1.2.637.1.1. Specs¶
Short name |
Php/ListWithKeys |
Rulesets |
All, Appinfo, CE, Changed Behavior, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP70 |
Exakat since |
0.8.4 |
PHP Version |
With PHP 7.1 and more recent |
Severity |
Major |
Time To Fix |
Quick (30 mins) |
Changed Behavior |
PHP 7.1 |
Precision |
Very high |
Available in |