N //姓
FN //名
ORG //公司地址
TEL;WORK;VOICE //工作单位电话
TEL;HOME;VOICE //家里电话
TEL;TYPE=cell //移动电话
ADR;HOME //家庭住址
EMAIL //邮箱
URL //网址
<?php
include "phpqrcode/qrlib.php";
$content='BEGIN:VCARD'."\n";
$content.='VERSION:2.1'."\n";
$content.='N:张'."\n";
$content.='FN:三'."\n";
$content.='ORG:北京慕课网公司'."\n";
$content.='TEL;WORK;VOICE:18868881111'."\n";
$content.='TEL;HOME;VOICE:18868881112'."\n";
$content.='TEL;TYPE=cell:18868881113'."\n";
$content.='ADR;HOME:;;德外大街10号;西城区;北京市;400000;中国'."\n";
$content.='EMAIL:hr@imooc.com'."\n";
$content.='URL:http://www.imooc.com'."\n";
$content.='END:VCARD'."\n";
QRcode::png($content);
?>
然后使用微信扫一扫