hehexu

博客园 首页 新随笔 联系 订阅 管理

2018年1月14日 #

摘要: $imgsource="qrcodes/1.png";$image = file_get_contents($imgsource); //将文件信息读取到一个内存中的字符串变量$im = imagecreatefromstring($image);//从字符串信息创建图片 阅读全文
posted @ 2018-01-14 22:49 hehexu 阅读(115) 评论(0) 推荐(0) 编辑

摘要: define(‘常量’,‘常量值’) define来定义常量, echo 也能输出常量, get_defined_constants(true) 返回一个多维数组,分类为第一维的键名,常量和它们的值位于第二维。 阅读全文
posted @ 2018-01-14 22:33 hehexu 阅读(1389) 评论(0) 推荐(0) 编辑