note 70390 deleted from function.array-rand by bjori
| From: | bjori@php.net | Date: | Sat, 14 Oct 2006 11:50:09 +0000 |
| Subject: | note 70390 deleted from function.array-rand by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-118522@lists.php.net to get a copy of this message | ||
Note Submitter: ashishkabob120 at yahoo dot com
Reason: this is a random delete message
----
this is a random pronouncable password generator:
<?php
$startsounds = array
(
"b"=>"0",
"c"=>"0",
"d"=>"0",
"f"=>"0",
"g"=>"0",
"h"=>"0",
"j"=>"0",
"k"=>"0",
"l"=>"0",
"m"=>"0",
"n"=>"0",
"p"=>"0",
"qu"=>"0",
"r"=>"0",
"s"=>"0",
"t"=>"0",
"v"=>"0",
"w"=>"0",
"y"=>"0",
"z"=>"0",
"th"=>"0",
"ch"=>"0",
"ph"=>"0",
"el"=>"0",
"in"=>"0",
"ar"=>"0",
"ew"=>"0",
"an"=>"0",
"sh"=>"0",
);
$vowelsounds = array
(
"a"=>"0",
"e"=>"0",i=>"0",
"o"=>"0",
"u"=>"0",
"ee"=>"0",
"oa"=>"0",
"ea"=>"0",
"oo"=>"0",
"ie"=>"0",
"au"=>"0",
"ou"=>"0"
);
$midsounds = array
(
"b"=>"0",
"c"=>"0",
"d"=>"0",
"f"=>"0",
"g"=>"0",
"h"=>"0",
"j"=>"0",
"k"=>"0",
"l"=>"0",
"m"=>"0",
"n"=>"0",
"p"=>"0",
"r"=>"0",
"s"=>"0",
"t"=>"0",
"v"=>"0",
"w"=>"0",
"y"=>"0",
"z"=>"0",
"sh"=>"0",
);
$vowels = array
(
"a"=>"0",
"e"=>"0",
"i"=>"0",
"o"=>"0",
"u"=>"0"
);
$endsounds = array
(
"b"=>"0",
"c"=>"0",
"d"=>"0",
"f"=>"0",
"g"=>"0",
"h"=>"0",
"j"=>"0",
"k"=>"0",
"l"=>"0",
"m"=>"0",
"n"=>"0",
"p"=>"0",
"s"=>"0",
"t"=>"0",
"v"=>"0",
"w"=>"0",
"x"=>"0",
"y"=>"0",
"z"=>"0",
"th"=>"0",
"ch"=>"0",
"ph"=>"0",
"ck"=>"0",
"r"=>"0",
"nk"=>"0",
"ss"=>"0",
"sh"=>"0",
);
$pw = array_rand($startsounds).
array_rand($vowelsounds).
array_rand($midsounds).
array_rand($vowels).
array_rand($endsounds).
mt_rand(0,999);
echo $pw; //possible output: teawut682
?>