Help create a php word generator. Generate words from the following letters: e, r, t, u, i, o, p, a, s, d, f, g, h, k, l, z, v, b, n, m
The length of the received word is 5 characters. From the generation you need to delete the words in which:
- The contract contains 2 or more vowels
- The contract contains 2 or more identical consonants.
- The contract contains 3 or more consonants
All data must be written to the file.
I.e:
eraab, eraaa, errab, ertde - such words are deleted
ertab, ritar - such remain