Permutations in PHP.


/ Published in: PHP
Save to your folder(s)

A recursive function to permute the items of an array. The function returns an array that contains many arrays, where each array is a permutation of the original array. This process can get intensive depending on how many items are in the initial array and how big the array items are.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.