CODER

RECORDING, ENJOY LIFE

PHP用谷歌API生成二维码的方法
2017年8月9日 10:36
<?php
    $url="http://www.bridal100.com/";
    echo cre_QR($url);
    function cre_QR($chl, $widhtHeight ='80', $EC_level='L', $margin='0'){
        return '<img src="http://chart.apis.google.com/chart?chs=' . $widhtHeight . 'x' . $widhtHeight . '&cht=qr&chld=' . $EC_level . '|' . $margin . '&chl=' . $chl . '" />';
    }
?>
LinuxNginxApachePHPMysqlThinkPHPCSS3JQueryVB其他