Home > Backend Development > PHP Tutorial > 透过 PHP类库 phpqrcode 生成 二维码

透过 PHP类库 phpqrcode 生成 二维码

WBOY
Release: 2016-06-13 13:07:17
Original
820 people have browsed it

通过 PHP类库 phpqrcode 生成 二维码

<?php //phpqrcode 在下面的附件中提供下载
require_once("phpqrcode/phpqrcode.php");
$str = 'http://soundhorizon.iteye.com';
$errorCorrectionLevel = 'L';
$matrixPointSize = 3; // 图像像素比例
QRcode::png($str, false, $errorCorrectionLevel, $matrixPointSize);
exit;
?>
Copy after login
Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template