I have an array which is multidimensional for no reason
/* This is how my array is currently */ Array ( [0] => Array ( [0] => Array
$singleArray = array(); foreach ($multiDimensionalArray as $key => $value){ $singleArray[$key] = $value['plan']; }
this is best way to create a array from multiDimensionalArray array.
thanks