Go Back   DeveloperBarn Forums > Programming & Scripting > PHP Development

Sponsored Links

Discuss "How can I randomly order the contents of an array?" in the PHP Development forum.

PHP Development - PHP is a powerful open source scripting language. Learn coding practices and tips to get the best out of your PHP pages.


Reply « Previous Thread | Next Thread »  
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1  
Old May 14th, 2008, 09:44 AM
Barn Newbie
 
Join Date: Mar 2008
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 1
theChris is an unknown quantity at this point
Default How can I randomly order the contents of an array?

I have an array and I was wondering if there is any easy way to order its contents?
Reply With Quote
Sponsored Links
  #2  
Old May 14th, 2008, 10:09 AM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

Default

PHP has a shuffle function that can do this: PHP: shuffle - Manual
__________________
jmurrayhead
If you agree with me... click the icon!
If my post solved your problem, click the button in the lower right-hand corner of the post.

Join our Folding team: DeveloperBarn Folding
Reply With Quote
The Following User Says Thank You to jmurrayhead For This Useful Post:
theChris (May 25th, 2008)
Reply

  DeveloperBarn Forums > Programming & Scripting > PHP Development

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.developerbarn.com/php-development/182-how-can-i-randomly-order-contents-array.html
Posted By For Type Date
Team Wolfguard Solutions - Resources This thread Refback May 15th, 2008 08:29 AM


All times are GMT -4. The time now is 08:24 PM.



Content Relevant URLs by vBSEO 3.2.0