To destructure a value value from a named array, use this syntax:
$arr = ["ID" => 3];
["ID" => $id] = $arr;
echo $id; // 3See this post for variations. Also, see extract.
To destructure a value value from a named array, use this syntax:
$arr = ["ID" => 3];
["ID" => $id] = $arr;
echo $id; // 3See this post for variations. Also, see extract.