I have array multidimensional array,
Array(
Array
(
[UTTL_M_FT] => 2616.00
[TUG] => 5310
[univercity] => 1
[year] => 2010
)
Array
(
[UTTL_M_FT] => 2710.00
[TUG] => 5405
[univercity] => 1
[year] => 2012
)
Array
(
[UTTL_M_FT] => 2622.00
[TUG] => 7803
[univercity] => 2
[year] => 2010
)
Array
(
[UTTL_M_FT] => 2759.00
[TUG] => 8423
[univercity] => 2
[year] => 2012
)
Array
(
[UTTL_M_FT] => 3330.00
[TUG] => 6879
[univercity] => 3
[year] => 2011
)
Array
(
[UTTL_M_FT] => 3373.00
[TUG] => 6796
[univercity] => 3
[year] => 2013
)
Array
(
[UFTF_ASN] => 749
[UFTF_TTL] => 5296
[univercity] => 1
[year] => 2013
)
)
And we require array in following format,
Array(
[univercity] => 1,
Array
(
[UTTL_M_FT] => 2616.00
[TUG] => 5310
[year] => 2010
),
Array
(
[UTTL_M_FT] => 2710.00
[TUG] => 5405
[year] => 2012
),
Array
(
[UFTF_ASN] => 749
[UFTF_TTL] => 5296
[year] => 2013
)
),
Array(
[univercity] => 2,
Array
(
[UTTL_M_FT] => 2759.00
[TUG] => 8423
[year] => 2012
)
),
Array(
[univercity] => 3,
Array
(
[UTTL_M_FT] => 3330.00
[TUG] => 6879
[year] => 2011
),
Array
(
[UTTL_M_FT] => 3373.00
[TUG] => 6796
[year] => 2013
)
);