toString() public méthode

Convert this grid reference into a string showing the exact values of the easting and northing.
public toString ( )
echo "Converted to Lat/Long: " . $ll1->toString();
?>
    </p>

    <p>
      Using WGS84 (convert an OSGB grid reference to a latitude and longitude using the WGS84 datum):

      <pre>$os1w = new OSRef(651409.903, 313177.270);
echo "OS Grid Reference: " . $os1w->toString() . " - " . $os1w->toSixFigureString() . "&lt;br /&gt;";
$l1w = $os1w->toLatLng();
$l1w->OSGB36ToWGS84();
echo "Converted to Lat/Long: " . $ll1w->toString();</pre>

      <?php 
$os1w = new OSRef(651409.903, 313177.27);
echo "OS Grid Reference: " . $os1w->toString() . " - " . $os1w->toSixFigureString() . "<br />";
$ll1w = $os1w->toLatLng();
$ll1w->OSGB36ToWGS84();
echo "Converted to Lat/Long: " . $ll1w->toString();
?>
    </p>

    <h2>Convert Latitude/Longitude to OS Grid Reference</h2>

    <p>
      Note that the OSGB-Latitude/Longitude conversions use the OSGB36 datum by default. The
      majority of applications use the WGS84 datum, for which the appropriate conversions
      need to be added. See the examples below to see the difference between the two data.
    </p>

    <p>