Arrays?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Rob_Beard
Forum Newbie
Posts: 23
Joined: Sat Oct 12, 2002 11:58 am

Arrays?

Post 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
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post 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.
Rob_Beard
Forum Newbie
Posts: 23
Joined: Sat Oct 12, 2002 11:58 am

Post by Rob_Beard »

Thanks anyway, but i sorted it with a simple If.

thanks

Rob
Post Reply