<!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 >= 3.0.0a1)</p><p class="refpurpose"><span class="refname">IntlCalendar::getAvailableLocales</span> — <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"><?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] => af [1] => af_NA [2] => af_ZA [3] => agq [4] => agq_CM [5] => ak [6] => ak_GH [7] => am [8] => am_ET [9] => ar [10] => ar_001 [11] => ar_AE [12] => ar_BH [13] => ar_DJ … output abbreviated … [595] => zh_Hant_HK [596] => zh_Hant_MO [597] => zh_Hant_TW [598] => zu [599] => 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>