DEV Community

Discussion on: PHP 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 :)