Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-03-2013, 04:46 PM   PM User | #1
paperino00
New Coder

 
Join Date: Nov 2011
Posts: 91
Thanks: 2
Thanked 0 Times in 0 Posts
paperino00 is an unknown quantity at this point
directoryiterator sorting

Hello, I use DirectoryIterator to perform operations on files but how can i sort only a limited number of files out of all starting from last or first ?

thanks
paperino00 is offline   Reply With Quote
Old 02-05-2013, 09:38 PM   PM User | #2
ste.richards
New to the CF scene

 
Join Date: Oct 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ste.richards is an unknown quantity at this point
It depends on what you want to remove. Can you elaborate?

If you want to reverse through the data, assign it to an array and use array_reverse on it.
ste.richards is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:59 PM.


Advertisement
Log in to turn off these ads.