Skip to content

Instantly share code, notes, and snippets.

@rccc
Created September 11, 2009 10:14
Show Gist options
  • Save rccc/185215 to your computer and use it in GitHub Desktop.
Save rccc/185215 to your computer and use it in GitHub Desktop.
<?php
$string = '<kml xmlns="http://earth.google.com/kml/2.0"><Placemark><LineString><coordinates> -112,36 -113,37 </coordinates></LineString></Placemark></kml>';
$options = array("extractStyles"=>true);
$test = new KML($options);
$features = $test->read($string);
var_dump($features);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment