I am a beginner in the use of PHP classes. I have found a class on the Internet that generates verification codes, how can I output the verification code generated by the class where the verification code needs to be output? The code in the class is as follows: & lt ;? Php & nbsp; classAuthCode & nbsp; {Use of PHP classes
I am a newbie. I just got started with the concept of class. now I have found a verification code generation class on the internet. how can I output the verification code generated in the class where I need to output the verification code? The code in the class is as follows:
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.