File_IMC
[ class tree: File_IMC ] [ index: File_IMC ] [ all elements ]

File: vCard.php

Source Location: /File_IMC-0.3/File/IMC/Parse/vCard.php

Classes:

File_IMC_Parse_vCard
Common parser for IMC files (vCard, vCalendar, iCalendar)

Page Details:

Parser for vCards.

This class parses vCard 2.1 and 3.0 sources from file or text into a structured array.

Usage:


1 // include this class file
2 require_once 'File/IMC.php';
3
4 // instantiate a parser object
5 $parse = new File_IMC::parse('vCard');
6
7 // parse a vCard file and store the data
8 // in $cardinfo
9 $cardinfo = $parse->fromFile('sample.vcf');
10
11 // view the card info array
12 echo '<pre>';
13 print_r($cardinfo);
14 echo '</pre>';

Includes:

require_once('File/IMC/Parse.php') [line 56]
The common IMC parser is needed

Documentation generated on Sat, 1 May 2004 00:42:18 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.