Forum Moderators: coopster
the file has this format
[b]BEGIN:VEVENT[/b]
UID
:27f5cf52-52ec-11da-bbe8-c7bdfcd88f9d
[b]SUMMARY
:build calendar
DESCRIPTION
:PHP calendar project build[/b]
CATEGORIES
:Business
[b]URL
:build_cal.htm[/b]
STATUS
:CONFIRMED
CLASS
:PUBLIC
X-MOZILLA-ALARM-DEFAULT-LENGTH
:0
X
;MEMBER=AlarmEmailAddress
:joker@ncsu.edu
[b]DTSTART
:20051111T145000[/b]
DTEND
:20051111T155000
DTSTAMP
:20051111T194818Z
LAST-MODIFIED
:20051111T200753Z
[b]END:VEVENT[/b]
I need to store DTSTART, SUMMARY, DESCRIPTION, and URL.
Then I need to sort the array by dates (DTSTART).
I think the function sscanf might be appropriate, but I'm a little confused about how to use it.
Any ideas?
Thanks