php 制作二维码 phpqrcode.php

phpqrcode.php

下载地址:https://sourceforge.net/projects/phpqrcode/

//测试可行 utf-8格式

<?php
header("Content-type: text/html; charset=utf-8");

include 'phpqrcode.php';  //引入phpqrcode.php
//支持中文

$value = "内容";
//$value="http://www.weste.net";
$errorCorrectionLevel = "L";
$matrixPointSize = "4";
QRcode::png($value, false, $errorCorrectionLevel, $matrixPointSize);
exit;

  

原文地址:https://www.cnblogs.com/fan-bk/p/7701105.html