title: XML Parsing/division issue
body: <p>I am messing about with the below code, and I can not seem to get this to work correctly... from what I gather all of the code is working perfectly fine, bar the division $distance1 variable.</p>
  
  <pre><code>&lt;?php
  $start = 'EC1V 0ES';
  $end = 'EC4R 3TN';
  
  $url = 'http://maps.googleapis.com/maps/api/directions/xml?origin='.$start.'&amp;destination='.$end.'&amp;sensor=false';
  $xml = simplexml_load_file($url); 
  $distance = $xml-&gt;route-&gt;leg-&gt;distance-&gt;text;
  $distance1 = $distance/1.609; // divided by 1.609 to convert KM into Miles
  
  echo $distance;
  echo '&lt;br /&gt;';
  echo $distance1;
  
  ?&gt;
  </code></pre>
  
  <p>Does any one have any ideas what so ever as to what could be causing this? I have tested online and taken a look into the GoogleApis URL (<a href="http://maps.googleapis.com/maps/api/directions/xml?origin=ec1v+0es&amp;destination=ec4r+3tn&amp;sensor=false" rel="nofollow">http://maps.googleapis.com/maps/api/directions/xml?origin=ec1v+0es&amp;destination=ec4r+3tn&amp;sensor=false</a>) and it seems as if my code is pulling the correct values, it just isn't dividing or something... ahh I am confused and a bit of a noob so go nicely please :)</p>