Application of PHP class
I am a novice just contact with the concept of class, now I found on the Internet a code to generate a class, how to output a verification code where the output of the code generated in the class? The code in the class is like this:
Class Authcode
{
var $image;
var $sBgcolor;
var $nWidth;
var $nHeight;
var $nLen;
var $bNoise;
var $nNoise;
var $bBorder;
var $aFontlist;
function Authcode ()
{
$this->sbgcolor = "#FFFFFF";
$this->nwidth = 70;
$this->nheight = 25;
$this->nleftmargin = 5;
$this->nrightmargin = 5;
$this->ntopmargin = 3;
$this->nbottommargin = 2;
$this->nlen = 4;
$this->bnoise = true;
$this->nnoisepoint = 50;
$this->nnoiseline = 5;
$this->bborder = true;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.