cvs: phpdoc(REF_STRUCT_DEV) /en/reference/intl/locale locale-parse-locale.xml
| From: | Felipe Pena | Date: | Fri, 07 Dec 2007 16:55:49 +0000 |
| Subject: | cvs: phpdoc(REF_STRUCT_DEV) /en/reference/intl/locale locale-parse-locale.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-551@lists.php.net to get a copy of this message | ||
felipe Fri Dec 7 16:55:49 2007 UTC
Modified files: (Branch: REF_STRUCT_DEV)
/phpdoc/en/reference/intl/locale locale-parse-locale.xml
Log:
Fix examples and php syntax.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-parse-locale.xml?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: phpdoc/en/reference/intl/locale/locale-parse-locale.xml
diff -u phpdoc/en/reference/intl/locale/locale-parse-locale.xml:1.1.2.2
phpdoc/en/reference/intl/locale/locale-parse-locale.xml:1.1.2.3
--- phpdoc/en/reference/intl/locale/locale-parse-locale.xml:1.1.2.2 Thu Dec 6 21:08:03 2007
+++ phpdoc/en/reference/intl/locale/locale-parse-locale.xml Fri Dec 7 16:55:49 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.1.2.2 $ -->
+<!-- $Revision: 1.1.2.3 $ -->
<refentry xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:id="locale.parselocale">
<refnamediv>
<refname>Locale::parseLocale</refname>
@@ -57,7 +57,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- $subtags an array containing a list of key-value pairs, where the keys
+ Returns an array containing a list of key-value pairs, where the keys
identify the particular locale ID subtags, and the values are the
associated subtag values. The array will be ordered as the locale id
subtags e.g. in the locale id if variants are '-varX-varY-varZ' then the
@@ -73,10 +73,10 @@
<programlisting role="php">
<![CDATA[
<?php
-$arr = locale_parse( 'sl-Latn-IT-nedis');
-if($arr) {
- foreach( $arr as $key => $value) {
- echo '$key : $value , ';
+$arr = locale_parse('sl-Latn-IT-nedis');
+if ($arr) {
+ foreach ($arr as $key => $value) {
+ echo "$key : $value , ";
}
}
?>
@@ -88,10 +88,10 @@
<programlisting role="php">
<![CDATA[
<?php
-$arr = Locale::parseLocale( 'sl-Latn-IT-nedis');
-if($arr) {
- foreach( $arr as $key => $value) {
- echo '$key : $value , ';
+$arr = Locale::parseLocale('sl-Latn-IT-nedis');
+if ($arr) {
+ foreach ($arr as $key => $value) {
+ echo "$key : $value , ";
}
}
?>