Dear all,<br><br>I&#39;m trying create two page variables from a new markup I&#39;ve created (ref GeoTagging recipe in development).  The markup is as follows and represents a comma separated latitude and longitude:<br><br>
(:coord 50.1234, -2.3456:)<br><br>I&#39;m trying (and failing) to take the value from coord and split it to store two page variable called Latitude and Longitude.  A logical example of what I&#39;m trying is below.  Obviously it doesn&#39;t work so only for illustrative purposes.  I&#39;d like to take the $FmtPV[&#39;$Coord&#39;] and create $FmtPV[&#39;$Latitude&#39;] and $FmtPV[&#39;$Longitude&#39;].  As you can see I&#39;m using explode() via a function so I can extract element 0 (lat) and element 1 (lng).<br>
<br>$FmtPV[&#39;$Coord&#39;] = &#39;@$page[&quot;coord&quot;]&#39;;<br>$SaveProperties[] = &#39;coord&#39;;<br>$FmtPV[&#39;$Latitude&#39;] = &#39;function:GetLatFromCoord&#39;;<br>function GetLatFromCoord() {<br>    $coordArr = explode(&#39;,&#39;,$FmtPV[&#39;$Coord&#39;]);<br>
    return $coordArr[0];<br>}<br>$FmtPV[&#39;$Longitude&#39;] = &#39;function:GetLngFromCoord&#39;;<br>function GetLngFromCoord() {<br>    $coordArr = explode(&#39;,&#39;,$FmtPV[&#39;$Coord&#39;]);<br>    return $coordArr[1];<br>
}<br><br>If this can done in a one-liner that would be even better. e.g.:<br>    $FmtPV[&#39;$Latitude&#39;] = &#39;explode(&#39;,&#39;,$FmtPV[&#39;$Coord&#39;])&#39;[0];<br>   
$FmtPV[&#39;$Longitude&#39;] = &#39;explode(&#39;,&#39;,$FmtPV[&#39;$Coord&#39;])&#39;[1];<br>
<br>Thanks in advance for any pointers.<br>--Steve.<br>