-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
permute
Description
Calculates all possible permutations of an array.
Syntax
array permute (array $array)
Parameter $array
Expected type: Array
Description: An array with at least two elements
Return value
Expected type: Array of arrays
Description: $orders, an array showing all possible arrays of the same length that can be made from the items in $array
Notes
- Does not check for duplicate values
- Assumes that there are at least two items in the array
- Not a recursive function
- See wikipedia for more info on permutations
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.124 seconds with 14 queries.
- Forum Search