fork download
  1. <?php
  2.  
  3.  
  4. $letters = array(
  5. 1 => 'да',
  6. 2 => 'мо',
  7. 3 => 'к',
  8. 4 => 'ва',
  9. 5 => 'лю',
  10. 6 => 'го',
  11. 7 => 'о',
  12. 8 => 'ла',
  13. 9 => 'му',
  14. 10 => 'же',
  15. 11 => 'тк',
  16. 12 => 'тс',
  17. 13 => 'г'
  18. );
  19. $lastLetter = array(
  20. 1 => 'ий',
  21. 2 => 'ов',
  22. 3 => 'ко',
  23. 4 => 'уй',
  24. 5 => 'ин',
  25. 6 => 'ан'
  26. );
  27.  
  28.  
  29. for ($i = 1; $i <= 3; $i++) {
  30. $random = mt_rand(1, count($letters));
  31. $randomLetters = $letters[$random];
  32. $name = $name . $randomLetters;
  33. }
  34. $randomLast = mt_rand(1, count($lastLetter));
  35. $Letter = $lastLetter[$randomLast];
  36. $name = ucfirst($name) . $Letter;
  37. echo "$name \n";
  38. ?>
Success #stdin #stdout #stderr 0.01s 20568KB
stdin
Standard input is empty
stdout
 датклаий 
 
stderr
PHP Notice:  Undefined variable: name in /home/3MtXRS/prog.php on line 33