php验证码怎么才能不区分大小写,自动转换小写?
用到的php函数strtolower对存在SESSION内的验证码使用strtolower函数将内容转为小写;<?php//创建背景画布$img_w = 100;/*宽*/$img_h = 30;*/$img = imagecreatetruecolor($img_w,$img_h);$bg_color = imagecolorallocate($img,0xcc,0xcc,0xcc);imagefill($img,0,0,$bg_color);//生成验证码$count =
原创
2020-06-20 15:29:45 ·
963 阅读 ·
0 评论