Page 1 of 1

Arrays?

Posted: Thu Dec 26, 2002 12:33 pm
by Rob_Beard
hey all,

I'm building a file manager, and in order to sort my results into Directories and Files, i'm trying to put all the files and their corrosponding details into an array, and then sort by the File Type.

My knowledge of PHP is very patchy, and to be honest, the manual isnt very helpful with arrays, so could someone please give me a few pointers of how to do this?

Cheers

Rob

Posted: Thu Dec 26, 2002 12:51 pm
by Gen-ik
Everything you should need to know is in the manual.. take a look at the array_pop and array_push functions for removing and adding values.

Posted: Thu Dec 26, 2002 1:04 pm
by Rob_Beard
Thanks anyway, but i sorted it with a simple If.

thanks

Rob