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