Skip to content

Functionality for randomizing PHP arrays while keeping associations.

Notifications You must be signed in to change notification settings

Jwaxo/unsort_array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

unsort_array.php, a simple function by @Jwaxo

History

2013.05.20 - Uploaded to GitHub
2013.05.08 - Comments formatted and corrected
2012.04.12 - Creation

What It Does

unsort_array is a pair of functions that work together to return a randomized version of an array that keeps the key associations, if there are any, while mixing up non-key elements throughout. It was basically created because I couldn't find a function that did it, because I could think of at least one situation where I would want this function, and because it's a really dumb name for something and I like things existing that have dumb names.

It does not randomize! It unsorts.

About

Functionality for randomizing PHP arrays while keeping associations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages