Who knows how to do this...lol...
Posted: Mon Jan 09, 2006 10:48 am
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.
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.