PHP is freaking turning into JS
Yeahh boi it is true.
Let's check out some of the new features (PHP8.0+)
Recommendation: upgrade to PHP8.1, latest always better π
Spread
$fromAnIndexArray = [1,2,3,4];
$fromAnAssocArray = [
'seth' => 'phat',
];
$array = [
...$fromAnIndexAr...
sethphat.dev3 min read
Kevin Pliester
Webdev
That's a pretty good summary of some of the new capabilities in PHP 8. Cool post!