Page 1 of 1

Mixing 2 syllable combinations in place of 1 letter ?

Posted: Mon Dec 18, 2017 8:49 pm
by teriibi
Hi,
I´m looking for a simple way to make new words using 2 letters combination.
so far I only make a 1 letter mxing.

$str2 = 'matepa';
$shuffled1 = str_shuffle($str1);
word = $shuffled1;

So from ("ti","mo","ty)
I´d like to make timoty,motity,tytimo..etc..
and not ttomyi (1 letter mixed.

anyone knows how ?
ANTHKS !!! :P

Re: Mixing 2 syllable combinations in place of 1 letter ?

Posted: Mon Dec 18, 2017 9:21 pm
by FourthWorld
What language are you using?

Re: Mixing 2 syllable combinations in place of 1 letter ?

Posted: Mon Dec 18, 2017 9:34 pm
by richmond62
Oh, Whacko: factorials . . .

First you'll need to mess around with factorials to work out how many combinations are possible:
Ouch.png
The you'll have to get into permutations: viewtopic.php?f=8&t=2629

Re: Mixing 2 syllable combinations in place of 1 letter ?

Posted: Mon Dec 18, 2017 10:55 pm
by bogs
FourthWorld wrote:
Mon Dec 18, 2017 9:21 pm
What language are you using?
Looks like some form of basic, but, I really came to say that line is one of my favorites from "The Expendables" where Harrison Ford says "WHAT LANGUAGE IS THAT?!" when Jason Statham was talking :lol:

Re: Mixing 2 syllable combinations in place of 1 letter ?

Posted: Tue Dec 19, 2017 11:42 am
by richmond62
What language are you using?
Dunno: but not the one these forums are dedicated to.