DEV Community

loading...

Discussion on: PHP 7 can do that ?

Collapse
lokidev profile image
LokiDev

Keep in mind, that arrays with named keys cannot be unpacked :/.

$arrayOne = ['a' => 123];
$arrayTwo = [...$arrayOne];  // throws PHP Error!

Other than that: very useful :)