| 1 |
<?php |
| 2 |
|
| 3 |
// Create a random string, leaving out 'o' to avoid confusion with '0' |
| 4 |
$char = strtoupper(substr(str_shuffle('abcdefghjkmnpqrstuvwxyz'), 0, 4)); |
| 5 |
|
| 6 |
// Concatenate the random string onto the random numbers |
| 7 |
// The font 'Anorexia' doesn't have a character for '8', so the numbers will only go up to 7 |
| 8 |
// '0' is left out to avoid confusion with 'O' |
| 9 |
$str = rand(1, 7) . rand(1, 7) . $char; |
| 10 |
|
| 11 |
?> |