www.webdeveloper.com
Results 1 to 3 of 3

Thread: reversing an array

  1. #1
    Join Date
    May 2003
    Posts
    55

    Question reversing an array

    I'm not sure if this is possible, i've scoured the PHP manual thingy and didnt find anything. What I need is to echo an array in reverse order eg. if my array was 3 8 4 67 2 I'd want it displayed as 2 67 4 8 3. I've found plenty of ways to sort them in reverse number order etc but not what I want!

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    You need array_reverse()...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  3. #3
    Join Date
    May 2003
    Posts
    55
    damn, i missed that 1!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles