Link to home
Start Free TrialLog in
Avatar of playstat
playstat

asked on

Take 8 words and output all possibile phrazes

hi there

I have a form that i can input 8 words but im not sure on how to output the 8 into all possible phrases for example

say the words are just     I am not sure

i
am
not
sure
not sure
i sure
am not sure
i am not sure

and so on

Any one got any suggestions on how to do this

best regards
ASKER CERTIFIED SOLUTION
Avatar of newaira
newaira

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thats all good except for 3 undefined variable errors....It shouldn't have..

$yourArr;
$pArr;
$n;

..up the top because it is not a class, therefore they do not need to be predefined and it works perfectly without them.

/ Zac Charles
Avatar of newaira
newaira

Sounds good, but you shouldn't be getting errors anyway (I don't).
thats a configuration question.