I have two arrays with matching keys and I need to merge the values of both into a new array. I'm beating myself up trying to figure this out. How can I do this?
$options = array(
"0" => true,
"1" => true,
"2" => false,
"3" => true
);
$columns = array(
"0" => "first",
"1" => "last",
"2" => "id",
"3" => "group"
);
$what_I_need = array(
"first" => true,
"last" => true,
"id" => false,
"group" => true
);