In PHP, list
or []
is a so called "language construct", just like array()
. This language construct is used to "pull" variables out of an array. In other words: it will "destructure" the array into separate variables.
Continue reading on https://stitcher.io/blog/array-destructuring-with-list-in-php
Top comments (0)