Xml to php array not working???

Im not sure why this is returning null everytime

[php]

<?php $xml = simplexml_load_file('trend.xml'); $arr = (array) $xml; $arr = $arr[topic][0][related][0][tag]; var_dump($arr); ?>

[/php]

this is the xml file http://www.faroo.com/api?q=&start=1&length=10&l=en&src=topics&f=xml

Please add part of the xml input, cant open the url

[embed=425,349]

100
1
10

topics en 0 fourth google mise revenu google quarter google revenu google mise google wall google street fourth quarter quarter revenu Google fourth-quarter revenue misses Wall Street target http://www.reuters.com/article/2015/01/30/us-google-results-idUSKBN0L22PR20150130 http://t0.gstatic.com/images?q=tbn:ANd9GcT3loF3eQaH3NFJqWkCengztnFOkONLcKxPKlinG4Bx5zIzJernguFhxKL92Ywh5C1QL-T_jlbB en true 30 2015-01-30T07:16:00.9854856 2015-01-30T06:55:19 Reuters Google fourth-quarter revenue misses Wall Street target Reuters SAN FRANCISCO (Reuters) - Google Inc's (GOOGL.O) (GOOG.O) revenue ... [/embed]
Sponsor our Newsletter | Privacy Policy | Terms of Service