app/GedcomRecord.php
public function getAllEventPlaces(array $events): array
    {
        $places = [];
        foreach ($this->facts($events) as $event) {
            if (preg_match_all('/\n(?:2 PLAC|3 (?:ROMN|FONE|_HEB)) +(.+)/', $event->gedcom(), $ged_places)) {
                foreach ($ged_places[1] as $ged_place) {
                    $places[] = new Place($ged_place, $this->tree);
                }
            }
        }

        return $places;
    }
public function getAllEventPlaces(array $events): array
    {
        $places = [];
        foreach ($this->facts($events) as $event) {
            if (preg_match_all('/\n(?:2 PLAC|3 (?:ROMN|FONE|_HEB)) +(.+)/', $event->gedcom(), $ged_places)) {
                foreach ($ged_places[1] as $ged_place) {
                    $places[] = new Place($ged_place, $this->tree);
                }
            }
        }

        return $places;
    }
public function getAllEventPlaces ( array $ events ) : array { $ places = [ ] ; foreach ( $ this -> facts ( $ events ) as $ event ) { if ( preg_match_all ( '/\n(?:2 PLAC|3 (?:ROMN|FONE|_HEB)) +(.+)/' , $ event -> gedcom ( ) , $ ged_places ) ) { foreach ( $ ged_places [ 1 ] as $ ged_place ) { $ places [ ] = new Place ( $ ged_place , $ this -> tree ) ; } } } return $ places ; }
Get all the places for a particular type of event

@param string[] $events

@return Place[]
Get all the places for a particular type of event