generate 10 digits alphanumeric value in php with first,third,fourth digit must be alphabet -


I need a php code to generate 10 digit alphanumeric values ​​with first, third, and fourth digits. The alphabet 'o' or 'o' should not be in the code generated.

The following should provide you with a building block:

  $ letters = Array_merge (category ('a', 'n'), range ('p', 'z')); $ MyRandom = $ characters [(RAND (1, counts ($ letters)) - 1)]; $ MyRandom = RAND (9); ($ I = 3; $ i & lt; = 4; $ i ++) {$ myRandom = $ Letters [(RAND (1, counts ($ letters)) - 1)]; } ($ I = 5; $ i & lt; = 10; $ i ++) {$ myRandom = RAND (9); } $ MyRandom echo;  

Comments