public static function extractParamsFromCollection($collection)
    {
        $result = array();
        foreach ($collection as $key => $value) {
            $result[$key] = $value;
        }

        return $result;
    }
public static function extractParamsFromCollection($collection)
    {
        $result = array();
        foreach ($collection as $key => $value) {
            $result[$key] = $value;
        }

        return $result;
    }
public static function extractParamsFromCollection ( $ collection ) { $ result = array ( ) ; foreach ( $ collection as $ key => $ value ) { $ result [ $ key ] = $ value ; } return $ result ; }
Converts an iterable collection into a raw array
@param $collection
@return array
Converts an iterable collection into a raw array