/var/www/enzatesting.onesolution.hk/js/jquery-validation-1.9.0/demo/captcha/rand.php


1
2
3
4
5
6
7
8
9
10
11
<?php

// Create a random string, leaving out 'o' to avoid confusion with '0'
$char strtoupper(substr(str_shuffle('abcdefghjkmnpqrstuvwxyz'), 04));

// Concatenate the random string onto the random numbers
// The font 'Anorexia' doesn't have a character for '8', so the numbers will only go up to 7
// '0' is left out to avoid confusion with 'O'
$str rand(17) . rand(17) . $char;

?>