Заменить указанные буквы случайно выбранными строками из массива, посвященного найденной букве.Php

Кемеровские программисты php общаются здесь
Anonymous
Заменить указанные буквы случайно выбранными строками из массива, посвященного найденной букве.

Сообщение Anonymous »


I have a few letters; for example a, b, c, d and e.

For each one of them, I have sets of two-character values like this:

a -> fg, dz, gc, bg

b -> zt, hg, oq, vg, gb

c -> lt, pr, cs, sh, pr

d -> kt, nt, as, pr

e -> zd, ke, cg, sq, mo, ld

Here comes the question:

I would like to get a random value for each time for example: dcbae and for this the ultimate output should be something like this: ntshztdzld or asltvggcmo, etc.

(After generating a random string with the characters above (between a-e), it should generate another string that contains random values those are related with the each character.


Источник: https://stackoverflow.com/questions/115 ... -dedicated

Вернуться в «Php»