Welcome visitor
* Login
* Register
It is currently January 22nd, 2019, 6:17 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Server Side » PHP



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  help sorting an array
PostPosted: March 3rd, 2009, 12:37 am 
User avatar

Posts: 52
Can someone help me to order an array that has names the user provides?
Id been thinking on loops, but Im looking for the most simple way to do it.
Thank you people.


Top
 Profile  
 
  Re: help sorting an array
PostPosted: March 3rd, 2009, 12:41 am 

Posts: 61
why not do u use
sort($array);
//or to keep the index
asort($array)


Top
 Profile  
 
  Re: help sorting an array
PostPosted: March 3rd, 2009, 12:43 am 
User avatar

Posts: 52
Thank you for the quick response. Im sorry for that simple question, but after 3 no-sleep-at-all days my brain begins to collapse :D.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

FORUMS » Server Side » PHP


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron