Looping is time consuming, we all know that. That\'s exactly something I\'m trying to avoid, even though it\'s on a small scale. Every bit helps. Well, if it\'s unset of co
This is the fastest and simplest code here so far ...
$result = []; foreach ($input as $subarray) { $result[$subarray["id"]] = $subarray["name"]; }