I need to sort my array in alphabetical order so the result should be like this:
Inn Zoo
Leo Ann
Leo Zes
Sun Yog
I looked at all these examples but can't apply to my array below(older questions):
- array sorting in DESC order
- sorting an array dynamically without knowing existing dimensions
- Sort array by value alphabetically php
- PHP: How to sort values of an array in alphabetical order?
Array
(
[1] => Array
(
[Inn] => Array
(
[Zoo] => Inn Zoo
)
)
[2] => Array
(
[Sun] => Array
(
[Yog] => Sun Yog
)
)
[3] => Array
(
[Leo] => Array
(
[Zes] => Leo Zes
)
)
[4] => Array
(
[Leo] => Array
(
[Ann] => Leo Ann
)
)
)