<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.intlcalendar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'intlcalendar.getkeywordvaluesforlocale.php',
    1 => 'IntlCalendar::getKeywordValuesForLocale',
    2 => 'Get set of locale keyword values',
  ),
  'up' => 
  array (
    0 => 'class.intlcalendar.php',
    1 => 'IntlCalendar',
  ),
  'prev' => 
  array (
    0 => 'intlcalendar.getgreatestminimum.php',
    1 => 'IntlCalendar::getGreatestMinimum',
  ),
  'next' => 
  array (
    0 => 'intlcalendar.getleastmaximum.php',
    1 => 'IntlCalendar::getLeastMaximum',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/intlcalendar/getkeywordvaluesforlocale.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intlcalendar.getkeywordvaluesforlocale" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::getKeywordValuesForLocale</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8, PECL &gt;= 3.0.0a1)</p><p class="refpurpose"><span class="refname">IntlCalendar::getKeywordValuesForLocale</span> &mdash; <span class="dc-title">Get set of locale keyword values</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.getkeywordvaluesforlocale-description">
  <h3 class="title">Beschreibung</h3>
  <p class="para">
   Objektorientierter Stil
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>IntlCalendar::getKeywordValuesForLocale</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$keyword</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$locale</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$onlyCommon</code></span>): <span class="type"><span class="type"><a href="class.intliterator.php" class="type IntlIterator">IntlIterator</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Prozeduraler Stil
  </p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>intlcal_get_keyword_values_for_locale</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$keyword</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$locale</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$onlyCommon</code></span>): <span class="type"><span class="type"><a href="class.intliterator.php" class="type IntlIterator">IntlIterator</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   For a given locale key, get the set of values for that key that would result
   in a different behavior. For now, only the <code class="literal">&#039;calendar&#039;</code>
   keyword is supported.
  </p>
  <p class="para">
   This function requires ICU 4.2 or later.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.getkeywordvaluesforlocale-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">keyword</code></dt>
    <dd>
     <p class="para">
      The locale keyword for which relevant values are to be queried. Only
      <code class="literal">&#039;calendar&#039;</code> is supported.
     </p>
    </dd>
   
   
    <dt><code class="parameter">locale</code></dt>
    <dd>
     <p class="para">
      The locale onto which the keyword/value pair are to be appended.
     </p>
    </dd>
   
   
    <dt><code class="parameter">onlyCommon</code></dt>
    <dd>
     <p class="para">
      Whether to show only the values commonly used for the specified locale.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.getkeywordvaluesforlocale-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   An iterator that yields strings with the locale keyword
   valuesBei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben..
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-intlcalendar.getkeywordvaluesforlocale-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
   <p><strong>Beispiel #1 <span class="function"><strong>IntlCalendar::getKeyworkValuesForLocale()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />print_r</span><span style="color: #007700">(<br />        </span><span style="color: #0000BB">iterator_to_array</span><span style="color: #007700">(<br />                </span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">getKeywordValuesForLocale</span><span style="color: #007700">(<br />                        </span><span style="color: #DD0000">'calendar'</span><span style="color: #007700">, </span><span style="color: #DD0000">'fa_IR'</span><span style="color: #007700">, </span><span style="color: #0000BB">true</span><span style="color: #007700">)));<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(<br />        </span><span style="color: #0000BB">iterator_to_array</span><span style="color: #007700">(<br />                </span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">getKeywordValuesForLocale</span><span style="color: #007700">(<br />                        </span><span style="color: #DD0000">'calendar'</span><span style="color: #007700">, </span><span style="color: #DD0000">'fa_IR'</span><span style="color: #007700">, </span><span style="color: #0000BB">false</span><span style="color: #007700">)));</span></span></code></div>
    </div>

    <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [0] =&gt; persian
    [1] =&gt; gregorian
    [2] =&gt; islamic
    [3] =&gt; islamic-civil
)
Array
(
    [0] =&gt; persian
    [1] =&gt; gregorian
    [2] =&gt; islamic
    [3] =&gt; islamic-civil
    [4] =&gt; japanese
    [5] =&gt; buddhist
    [6] =&gt; roc
    [7] =&gt; hebrew
    [8] =&gt; chinese
    [9] =&gt; indian
    [10] =&gt; coptic
    [11] =&gt; ethiopic
    [12] =&gt; ethiopic-amete-alem
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


</div><?php manual_footer($setup); ?>