From:
BOBBY,9238123
LOBBY,2312312
Into:
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
the bobby repeats twice and phone number once This is what I have tried
my code:
foreach(explode("
", $text) as $line) {
// I don't know what to do next
}