PHP Password generator Function.
//Celox Systems LLC 2008 function get_pass(){ $letters = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k","l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"); $letters2 = array("A", "B", "C", "D", "E", "F", "G", "H", "J", "M", "N", "Q", "R", "T", "Y"); $spec_char = array("@", "!", "$", "#"); $first = $letters[rand(0,count($letters)-1)].$letters[rand(0,count($letters)-1)].$letters[rand(0,count($letters)-1)]; $second = $letters2[rand(0,count($letters2)-1)].$letters2[rand(0,count($letters2)-1)]; $thrd = $spec_char[rand(0,count($spec_char)-1)]; $num = rand(1,9); $num = $num.rand(1,9); $pass = str_shuffle($first.$num.$second.$thrd); return $pass; }