从:
BOBBY,9238123
LOBBY,2312312
进入:
BEGIN:VCARD
VERSION:2.1
N:BOBBY;;;;
FN:BOBBY
TEL;CELL:9238123
END:VCARD
BEGIN:VCARD
VERSION:2.1
N:LOBBY;;;;
FN:LOBBY
TEL;CELL:3423423
END:VCARD
鲍比重复两次,电话号码一次这是我尝试过的
我的代码:
foreach(explode("\n", $text) as $line) {
// I don't know what to do next
}