Here is my code to get all possibilities:
$seq[1] = \'d\'; $seq[2] = \'f\'; $seq[3] = \'w\'; $seq[4] = \'s\'; for($i = 1; $i < 5; $i++) { $s[\'length
This is a standard permutation question, look in to "php permutations" if you need all variations of the string.