nuovo / vCard-parser

Easier and more concise vCard (.vcf) parser for PHP
http://nuovo.lv/
MIT License
126 stars 56 forks source link

Does not parse Apples vCard very well #23

Open markhughes opened 11 years ago

markhughes commented 11 years ago

This is the output from Apples vCard, I believe it's because of using items.

Array
(
    [0] => Array
        (
            [LastName] => 
            [FirstName] => 
            [AdditionalNames] => 
            [Prefixes] => 
            [Suffixes] => 
        )

)
Array
(
    [0] => Array
        (
            [Value] => 1-800-MY-APPLE
            [Type] => Array
                (
                    [0] => main
                    [1] => pref
                )

        )

)

For example, it uses item1.ADR instead of just ADR

 item1.ADR;type=WORK;type=pref:;;1 Infinite Loop;Cupertino;CA;95014;United States
 item1.X-ABADR:us

However, we don't even get the address out of it.

This pastebin contains the contents of the card: http://pastebin.com/mdsHFVv6