List All Word/Item Permutations Within a Text String
PHP Program by Jay Tanner
Enter a Text String Containing Up To 8 UNIQUE Words or Items
Permutations are the total count of all the unique possible sequences in which unique items can be arranged in a line without duplicating any sequence, assuming that all of the items or words in the string are unique and distinguishable from each other. Even if the listing is far too long to print, we can still very easily compute the total number of possible permutations exactly. ============================================================== Given the plain text string: 'Cat Dog Bird' There are exactly 6 possible word or item permutations within the given text string. -------------------------------------------------------------- INDEXED TABLE OF 6 PERMUTATIONS OF 3 UNIQUE ITEMS Count Listing of ALL Permutations Within the Text String ----- ------------------------------------------------------- 1 'Cat Dog Bird' 2 'Cat Bird Dog' 3 'Dog Cat Bird' 4 'Dog Bird Cat' 5 'Bird Cat Dog' 6 'Bird Dog Cat' ==============================================================
Program by Jay Tanner
Revised: Thursday, January 01, 1970 at 12:00:00 AM UTC
Download PHP 7 Source Code For This Program