nuovo / vCard-parser

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

Easier access to data #2

Closed xbgmsharp closed 12 years ago

xbgmsharp commented 12 years ago

Hello,

I add a public function to allow easier access to data. The idea to to avoid the array inside each value.

As an example: from: [profile] => Array ( [0] => VCARD ) [n] => Array ( [0] => Array ( [LastName] => Last [FirstName] => First ) )

to: [profile] => VCARD [n] => Array ( [LastName] => Last [FirstName] => First )

pilsetnieks commented 12 years ago

I did it in a different way - you can now specify an option to the constructor that let's you access the values without the additional array, if there is only one value for an element. I wrote up on that in the wiki, see the second question here: https://github.com/nuovo/vCard-parser/wiki/Usage