2
I got the following array that contains file information from a folder:
Array
(
[name] => Apresenta__o1.ppt
[server_path] => C:\wamp\www\portais\arquivos\alunos\4_45258\files\Apresenta__o1.ppt
[size] => 174080
[date] => 1432943066
[relative_path] => C:\wamp\www\portais\arquivos/alunos/4_45258/files
[ext] => Array
(
[0] => application
[1] => powerpoint
)
[i_empresa] => 4
[i_aluno] => 45258
)
Array
(
[name] => Apresenta__o2.jpg
[server_path] => C:\wamp\www\portais\arquivos\alunos\4_45258\files\Apresenta__o2.jpg
[size] => 68710
[date] => 1432943064
[relative_path] => C:\wamp\www\portais\arquivos/alunos/4_45258/files
[ext] => Array
(
[0] => image
[1] => jpeg
)
[i_empresa] => 4
[i_aluno] => 45258
)
Array
(
[name] => Atendimento_Comunicativo.doc
[server_path] => C:\wamp\www\portais\arquivos\alunos\4_45258\files\Atendimento_Comunicativo.doc
[size] => 28672
[date] => 1434671499
[relative_path] => C:\wamp\www\portais\arquivos/alunos/4_45258/files
[ext] => Array
(
[0] => application
[1] => msword
)
[i_empresa] => 4
[i_aluno] => 45258
)
How to order this array by index date
?
did not work, returns 1 for each array
– Saymon
The functions above, sort by reference, so you can try this: Put all the returned arrays in a single array, then use one of the functions above to organize this array, pronto vc has an array with all the other ordered within it, I will edit the answer...
– Strakh
tried all these ways and all return 1 and not the reordered array
– Saymon
nothing, the same return 1 always
– Saymon