Tag Archives: word combinations

How to Create All Possible Word Combinations from a String With PHP

Sometimes you need to change the word order in a line for some reason. I am going to show you a PHP solution that allows you to create all possible word combinations from a string. The code below should explain you all operations that are performed. <? // Factorial function fact($s){ if ($s==0) return 1; else return $fact… Read More »