我正在寻找一个移动特定键的php(sort?)函数( 我是这样的: p>
我需要这个: p>
我知道我需要像arr_multisort这样的递归函数,但我不明白它-_- p>
div>'current_files' code>)到它的数组级别的底部。 p>
[A] => [
[current_files] => [
[0] => ...
[1] => ...
]
[D] => [
[G] => [...]
[current_files] => [...]
[B] => [...]
]
]
[current_files] => [...]
[K] => [...]
code> pre>
[A] => [
[D] => [
[G] => [...]
[B] => [...]
[current_files] => [...]
]
[current_files] => [
[0] => ...
[1] => ...
]
]
[K] => [...]
[current_files] => [...]
code> pre>
I'm looking for a php (sort?)function which move a specific key ('current_files'
) to the bottom of its array level.
I have sth like that:
[A] => [
[current_files] => [
[0] => ...
[1] => ...
]
[D] => [
[G] => [...]
[current_files] => [...]
[B] => [...]
]
]
[current_files] => [...]
[K] => [...]
I need this:
[A] => [
[D] => [
[G] => [...]
[B] => [...]
[current_files] => [...]
]
[current_files] => [
[0] => ...
[1] => ...
]
]
[K] => [...]
[current_files] => [...]
I know that i need a recursive function like arr_multisort but i dont understand it -_-