Skip to content

Instantly share code, notes, and snippets.

View mstenta's full-sized avatar
🥚

Michael Stenta mstenta

🥚
View GitHub Profile
@mstenta
mstenta / parse-kml.php
Last active February 8, 2024 07:36 — forked from woodbri/parse-kml.php
Script to parse a kml file
<?php
// Enter the name of the KML file here.
$kml_filename = '';
$xml = simplexml_load_file($kml_filename);
$folders = $xml->Document->Folder;
foreach ($folders as $folder) {
print "Name: " . $folder->name . "\n";
print "Description: " . $folder->description . "\n";