svn: /phpdoc/en/trunk/reference/datetime/datetimezone/ getlocation.xml
| From: | Richard Quadling | Date: | Mon, 24 Jan 2011 10:35:01 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/datetime/datetimezone/ getlocation.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7667@lists.php.net to get a copy of this message | ||
rquadling Mon, 24 Jan 2011 10:35:01 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=307705
Log:
Updated example to show corrected procedural usage.
Changed paths:
U phpdoc/en/trunk/reference/datetime/datetimezone/getlocation.xml
Modified: phpdoc/en/trunk/reference/datetime/datetimezone/getlocation.xml
===================================================================
--- phpdoc/en/trunk/reference/datetime/datetimezone/getlocation.xml 2011-01-24 10:33:53 UTC (rev
307704)
+++ phpdoc/en/trunk/reference/datetime/datetimezone/getlocation.xml 2011-01-24 10:35:01 UTC (rev
307705)
@@ -50,6 +50,7 @@
<?php
$tz = new DateTimeZone("Europe/Prague");
print_r($tz->getLocation());
+print_r(timezone_location_get($tz));
?>
]]>
</programlisting>
@@ -63,6 +64,13 @@
[longitude] => 14.43333
[comments] =>
)
+Array
+(
+ [country_code] => CZ
+ [latitude] => 50.08333
+ [longitude] => 14.43333
+ [comments] =>
+)
]]>
</screen>
</example>