List example: numbered code

  1. function get_random_name() {
  2. $rand_name = "";
  3. for ($i = 1; $i <= 8; $i++) {
  4. $rand_name .= chr(rand(97, 122));
  5. }
  6. return $rand_name;
  7. }