src/ICal/ICal.php
public function events()
    {
        $array = $this->cal;
        $array = isset($array['VEVENT']) ? $array['VEVENT'] : array();
        $events = array();

        if (!empty($array)) {
            foreach ($array as $event) {
                $events[] = new Event($event);
            }
        }

        return $events;
    }
public function events()
    {
        $array = $this->cal;
        $array = isset($array['VEVENT']) ? $array['VEVENT'] : array();
        $events = array();

        if (!empty($array)) {
            foreach ($array as $event) {
                $events[] = new Event($event);
            }
        }

        return $events;
    }
public function events ( ) { $ array = $ this -> cal ; $ array = isset ( $ array [ 'VEVENT' ] ) ? $ array [ 'VEVENT' ] : array ( ) ; $ events = array ( ) ; if ( ! empty ( $ array ) ) { foreach ( $ array as $ event ) { $ events [ ] = new Event ( $ event ) ; } } return $ events ; }
Returns an array of Events.
Every event is a class with the event
details being properties within it.

@return array
Returns an array of Events . Every event is a class with the event details being properties within it .