Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 8498

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get array of locales for which there is data</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.getactualminimum.html">IntlCalendar::getActualMinimum</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.getdayofweektype.html">IntlCalendar::getDayOfWeekType</a></div>
 <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intlcalendar.getavailablelocales" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::getAvailableLocales</h1>
  <p class="verinfo">(PHP 5.5.0, PECL &gt;= 3.0.0a1)</p><p class="refpurpose"><span class="refname">IntlCalendar::getAvailableLocales</span> &mdash; <span class="dc-title">Get array of locales for which there is data</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.getavailablelocales-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span> <span class="methodname"><strong>IntlCalendar::getAvailableLocales</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   Gives the list of locales for which calendars are installed. As of ICU 51,
   this is the list of all installed ICU locales.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.getavailablelocales-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.getavailablelocales-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   An <span class="type"><a href="language.types.array.html" class="type array">array</a></span> of <span class="type"><a href="language.types.string.html" class="type string">string</a></span>s, one for which locale. 
  </p>
 </div>



 <div class="refsect1 examples" id="refsect1-intlcalendar.getavailablelocales-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-2600">
   <p><strong>Example #1  <span class="function"><strong>IntlCalendar::getAvailableLocales()()</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">(</span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">getAvailableLocales</span><span style="color: #007700">());</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>The above example will output:</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
Array
(
    [0] =&gt; af
    [1] =&gt; af_NA
    [2] =&gt; af_ZA
    [3] =&gt; agq
    [4] =&gt; agq_CM
    [5] =&gt; ak
    [6] =&gt; ak_GH
    [7] =&gt; am
    [8] =&gt; am_ET
    [9] =&gt; ar
    [10] =&gt; ar_001
    [11] =&gt; ar_AE
    [12] =&gt; ar_BH
    [13] =&gt; ar_DJ
    … output abbreviated …
    [595] =&gt; zh_Hant_HK
    [596] =&gt; zh_Hant_MO
    [597] =&gt; zh_Hant_TW
    [598] =&gt; zu
    [599] =&gt; zu_ZA
)
</pre></div>
    </div>
   </div>
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.getactualminimum.html">IntlCalendar::getActualMinimum</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.getdayofweektype.html">IntlCalendar::getDayOfWeekType</a></div>
 <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>