Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 568 Bytes

parsing.md

File metadata and controls

30 lines (20 loc) · 568 Bytes

Documentation homepage

Parsing data

Parse .vcf file

$vCardsCollection = Pleb\VCardIO\VCardParser::parseFile('./contacts.vcf');

Parse raw data

Give a string to the parser to obtain same result.

$vCardsRawData = 'BEGIN:VCARD
VERSION:4.0
FN:Jeffrey Lebowski
BDAY:19421204
X-MAIN-HOBBY:Bowling
END:VCARD';

$vCardsCollection = Pleb\VCardIO\VCardParser::parseRaw($vCardsRawData);

Return format

The result of parsing is a VCardsCollection object.

View the collection documentation for more information.