Introduction

Introduction --  Build (create) and fetch vCard 2.1 and 3.0 text blocks.

Description

Here are some quick instructions for the impatient. :-)

Example 43-1. Example code


<?php
    // include the class file
    require_once 'Contact_Vcard_Parse.php';

    // instantiate a parser object
    $parse = new Contact_Vcard_Parse();

    // parse a vCard file and store the data
    // in $cardinfo
    $cardinfo $parse->fromFile('sample.vcf');

    // view the card info array
    echo '<pre>';
    print_r($cardinfo);
    echo '</pre>';

?>