Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2011
    Posts
    97
    Thanks
    2
    Thanked 0 Times in 0 Posts

    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

  • #2
    New to the CF scene
    Join Date
    Oct 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •