<?php function random8CharString() { $chars = "abcdefghijkmnopqrstuvwxyz023456789"; srand((double) microtime() * 1000000); $pass = ''; for ($i = 0; $i <= 7; ++$i) { $pass .= $chars[rand() % 33]; } return $pass; } echo random8CharString();
You have javascript disabled. You will not be able to edit any code.