Thanks for pointing that out!!
Is there anything that I can utilize to flip without losing duplicate values...I tried utilizing a function provided within the manual...
In case anyone wants a function that doesn't lose duplicates:
function array_invert($arr)
{
$res = Array();
foreach(array_keys($arr) as $key)
{
if (!array_key_exists($arr[$key], $res)) $res[$arr[$key]] = Array();
array_push($res[$arr[$key]], $key);
}
return $res;
}
However, when I execute my array against this function, I'm getting unexpected results...
Array ( [56] => Array ( [0] => 48 ) [28] => Array ( [0] => 49 ) [30] => Array ( [0] => 50 ) [27] => Array ( [0] => 51 ) [1] => Array ( [0] => Submit ) )