PHP This is an example of a random printout string, the PHP print output string
PhpHeader("content-type:text/html;charset= ' UTF8 '");error_reporting(E_all);Define("Captcha_len", 16);//Random number length$captchaSource= "0123456789abcdefghijklmnopqrstuvwxyz This is an example of a random printout string";//Random Digital Mnemonic$captchaResult= "";//random number return value$captchaSentry= "";//random number Intermediate variable for($i= 0;$i
<>
$i + + ) { $n = Rand(0, strlen( $captchaSource)); if( $n >= ) { $n = + ceil( $n -$)/3) * 3 ; $captchaResult . = substr( $captchaSource, $n, 3 );
}Else{ $captchaResult . = substr( $captchaSource, $n, 1 );
}}echo "Random print output string:". $captchaResult. "
";
http://www.bkjia.com/PHPjc/1051218.html www.bkjia.com true http://www.bkjia.com/PHPjc/1051218.html techarticle PHP This is an example of a random printout string, PHP print output string? PHP header ("content-type:text/html;charset= ' UTF8 '"); error_reporting (E_all); Define ("Captcha_ ...