Hi,
I ran into another problem just now.
I need to build a small php script that can take a phrase or 2-3 words or more, and find every re arrangement:
example:
user enters:
php - it just outputs php
php dev - it outputs "php dev" and "dev php"
php dev network - it outputs "php dev network" and "dev php network" and " network dev php" and all the other of the 9 possibilities.
I'd like this to go up to like 9 MAXimum.
Who has a script I can look at and modifiy a function?
I'm sure this has to do with like two or more loops but I can't quite code it even though it's so simple.
Who knows how to do this...lol...
Moderator: General Moderators
-
jclarkkent2003
- Forum Contributor
- Posts: 123
- Joined: Sat Dec 04, 2004 9:14 pm
-
jclarkkent2003
- Forum Contributor
- Posts: 123
- Joined: Sat Dec 04, 2004 9:14 pm
thanks, that should do exactly what I was looking for, just gotta slightly modifiy 
God I love this forum~!
EDIT: Except now I see it's char by char, gotta modifiy a little more than slightly to store each word in an array like this , $array = explode(" ",$string) , then modifiy so it uses the array.
God I love this forum~!
EDIT: Except now I see it's char by char, gotta modifiy a little more than slightly to store each word in an array like this , $array = explode(" ",$string) , then modifiy so it uses the array.