hi my goal is to create a form that grabs all the words and deletes a letter from every combination....
for example....
if i submited - Jordan William
i would want my return result to echo...
jordan jorda jordn joran jodan jrdan ordan
william willim willam wiliam wiliam wlliam illiam
this is only how far i can get ive tryed alot of mixed loops but cant get it to work and now im totally stuck...
[code=php]
$words = eregi_replace(" +", " ",$words);
$indivualWords = explode(' ', $words);
for($i=0; $i < count($indivual Words); $i++){
$indivualWords[$i] = substr_replace( $indivualWords[$i],"",-1);
echo $indivualWords[$i] . "<br />" ;
}
}
[/code]
for example....
if i submited - Jordan William
i would want my return result to echo...
jordan jorda jordn joran jodan jrdan ordan
william willim willam wiliam wiliam wlliam illiam
this is only how far i can get ive tryed alot of mixed loops but cant get it to work and now im totally stuck...
[code=php]
$words = eregi_replace(" +", " ",$words);
$indivualWords = explode(' ', $words);
for($i=0; $i < count($indivual Words); $i++){
$indivualWords[$i] = substr_replace( $indivualWords[$i],"",-1);
echo $indivualWords[$i] . "<br />" ;
}
}
[/code]
Comment