Latest

Thursday, July 6, 2017

laravel read ical file and parse value to a database?

Asked by: Przemek Wojtas


I have ical file locally and I am retrieving it and converting to an array like this:

    $ical = new ICal('ical/basic.ics');
    $test = ($ical->events());
    dd($test);

Which gives me an output like:

ICAL 1

And each item in an array has values such as:

ICAL example

What I want to do is write a loop that would loop throught each array and output for example 'summary' then I will expand it to do what I want it to do however the question is how to write such a loop?



Source

No comments:

Post a Comment

Adbox