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

Source for file vcard_parse_example.php

Documentation is available at vcard_parse_example.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | PHP version 5                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2002 The PHP Group                                |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 2.0 of the PHP license,       |
  9. // | that is bundled with this package in the file LICENSE, and is        |
  10. // | available at through the world-wide-web at                           |
  11. // | http://www.php.net/license/2_02.txt.                                 |
  12. // | If you did not receive a copy of the PHP license and are unable to   |
  13. // | obtain it through the world-wide-web, please send a note to          |
  14. // | license@php.net so we can mail you a copy immediately.               |
  15. // +----------------------------------------------------------------------+
  16. // | Authors: Paul M. Jones <pmjones@ciaweb.net>                          |
  17. // |          Marshall Roch <mroch@php.net>                               |
  18. // +----------------------------------------------------------------------+
  19. //
  20. // $Id$
  21.  
  22. require_once 'File/IMC.php';
  23.  
  24. // create vCard parser
  25. $parse File_IMC::parse('vCard');
  26.  
  27. // parse a vCard file and store the data in $cardinfo
  28. $cardinfo $parse->fromFile('sample.vcf');
  29.  
  30. // view the card info array
  31. echo '<pre>';
  32. print_r($cardinfo);
  33. echo '</pre>';
  34.  
  35. ?>

Documentation generated on Mon, 11 Mar 2019 15:49:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.