How to extract .tcx file in Php

i have one garmin.tcx file,it’s contain xml data, now i want display as a array using PHP?

Please download garmin.tcx file from following url

https://drive.google.com/file/d/0B4cW6CY3p0BHNHk4TjR0U29hUnc/view?usp=sharing

Please help


Source: xml

1 Comment

  1. Digin Dominic

    Simple example how to read an XML file in PHP

    <?php
    $items = simplexml_load_file('garmin.tcx');

    foreach($items as $item) {
    var_dump($item);
    }

    Reply

Leave a Reply