PHP

Array Destructuring 💡

You can assign variables from array values using array destructuring.

$array = [1, 2, 3]; 
[$a, $b, $c] = $array;

// $a = 1
// $b = 2
// $c = 3

You can learn more about array destructuring here: link