<?php//introduced Phpqrcode class library//phpqrcode:https://github.com/t0k4rt/phpqrcoderequire_once "phpqrcode/qrlib.php";//splicing content $content = "Begin:vcard". "\ n";//start $content. = "version:2.1". "\ n";//version $content. = "N: Zhang". "\ n";//surname $content. = "FN: three". "\ n";//name $content. = "Org:51cto". "\ n";//Organization name $content. = "TEL; work; voice:1234567 ". "\ n";//Work phone $content. = "TEL; HOME; voice:12345678 ". "\ n";//Home phone $content. = "TEL; type=cell:12345678901 ". "\ n";//Mobile phone $content. = "ADR; HOME:;; No. 433330, China ". "\ n";//Home address $content. = "Email:[email protected]". "\ n";//mailbox $content. = "Url:https://www.baidu.com". "\ n"; Personal homepage $content. = "End:vcard";//end//output QR code qrcode::p ng ($content);? >
Generated two-dimensional code
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9E/41/wKiom1mNVTbSvuJIAAAIdPnwn00864.png "title=" Generated QR code "alt=" Wkiom1mnvtbsvujiaaaidpnwn00864.png "/>
Scan out the information
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9E/42/wKiom1mNV9GTtaMlAAJUdfiCeiQ123.jpg "title=" Screenshot_2017-08-11-15-05-39.jpg "width=" "height=" 673 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:350px; height:673px; "alt=" wkiom1mnvxbblmxyaajuegttch8339.jpg "/>
This article from "Tong Xin Blog" blog, please be sure to keep this source http://tong707.blog.51cto.com/12527988/1955464
PHP Generate Electronic Business card (QRCode)