Tengo un array de esta forma:
Array
(
[0] => Array
(
[iataCity] => NRT
[nameCity] => Tokyo
)
[1] => Array
(
[iataCity] => MIA
[nameCity] => Miami
)
[2] => Array
(
[iataCity] => DFW
[nameCity] => Dallas
)
[3] => Array
(
[iataCity] => LAX
[nameCity] => Los Angeles
)
[4] => Array
(
[iataCity] => MIA
[nameCity] => Miami
)
)
Se repite Miami, la idea es que ninguna ciudad se repita, he tratado con array_unique pero no funciona.
He usado los siguientes:
array_unique($flightScales, SORT_REGULAR);
array_unique($flightScales);
array_values(array_unique($flightScales));
¿Alguna otra idea?
array_unique()