Posted By

on 01/14/09


Tagged

parser reader ical


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

luman


ical parsing example


 / Published in: PHP
 

URL: http://aidanlister.com/repos/v/iCalReader.php

if you need to parse the content of a ical .ics file, use this!

  1. <?php
  2. # you need the iCalReader found here:
  3. # http://aidanlister.com/repos/v/iCalReader.php
  4.  
  5. require_once 'iCalReader.php';
  6.  
  7. $ical = new iCalReader('basic.ics');
  8. $meta = $ical->getMeta();
  9. $events = $ical->getEvents();
  10.  
  11.  
  12. echo '<pre>';
  13. print_r($events);
  14. echo '</pre>';
  15. ?>

Report this snippet  

You need to login to post a comment.