<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'intlcalendar.getleastmaximum.php',
    1 => 'IntlCalendar::getLeastMaximum',
    2 => 'Get the smallest local maximum for a field',
  ),
  'up' => 
  array (
    0 => 'class.intlcalendar.php',
    1 => 'IntlCalendar',
  ),
  'prev' => 
  array (
    0 => 'intlcalendar.getkeywordvaluesforlocale.php',
    1 => 'IntlCalendar::getKeywordValuesForLocale',
  ),
  'next' => 
  array (
    0 => 'intlcalendar.getlocale.php',
    1 => 'IntlCalendar::getLocale',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/intlcalendar/getleastmaximum.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intlcalendar.getleastmaximum" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::getLeastMaximum</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::getLeastMaximum</span> &mdash; <span class="dc-title">Get the smallest local maximum for a field</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.getleastmaximum-description">
  <h3 class="title">说明</h3>
  <p class="para">
   面向对象风格
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>IntlCalendar::getLeastMaximum</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$field</code></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   过程化风格
  </p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>intlcal_get_least_maximum</strong></span>(<span class="methodparam"><span class="type"><a href="class.intlcalendar.php" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$calendar</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$field</code></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Returns the smallest local maximumw for a field. This should be a value
   smaller or equal to that returned by
   <span class="function"><strong>IntlCalendar::getActualMaxmimum()</strong></span>, which is in its turn
   smaller or equal to that returned by
   <span class="function"><a href="intlcalendar.getmaximum.php" class="function">IntlCalendar::getMaximum()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.getleastmaximum-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">calendar</code></dt>
    <dd>
     <p class="para"><span class="classname"><a href="class.intlcalendar.php" class="classname">IntlCalendar</a></span> 实例。</p>
    </dd>
   
   
    <dt><code class="parameter">field</code></dt>
    <dd>
     

<p class="para">
 One of the <span class="classname"><a href="class.intlcalendar.php" class="classname">IntlCalendar</a></span> date/time <a href="class.intlcalendar.php#intlcalendar.constants" class="link">field constants</a>. These are integer
 values between <code class="literal">0</code> and
 <strong><code>IntlCalendar::FIELD_COUNT</code></strong>.
</p>

    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.getleastmaximum-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   An <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> representing a field value in the fieldʼs
   unit 或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>



 <div class="refsect1 examples" id="refsect1-intlcalendar.getleastmaximum-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-1">
   <p><strong>示例 #1 Maxima examples</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />ini_set</span><span style="color: #007700">(</span><span style="color: #DD0000">'date.timezone'</span><span style="color: #007700">, </span><span style="color: #DD0000">'UTC'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">ini_set</span><span style="color: #007700">(</span><span style="color: #DD0000">'intl.default_locale'</span><span style="color: #007700">, </span><span style="color: #DD0000">'it_IT'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$cal </span><span style="color: #007700">= new </span><span style="color: #0000BB">IntlGregorianCalendar</span><span style="color: #007700">(</span><span style="color: #0000BB">2013</span><span style="color: #007700">, </span><span style="color: #0000BB">3 </span><span style="color: #FF8000">/* April */</span><span style="color: #007700">, </span><span style="color: #0000BB">6</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(<br />    </span><span style="color: #0000BB">$cal</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getLeastMaximum</span><span style="color: #007700">(</span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">FIELD_DAY_OF_MONTH</span><span style="color: #007700">),  </span><span style="color: #FF8000">// 28<br />    </span><span style="color: #0000BB">$cal</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getActualMaximum</span><span style="color: #007700">(</span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">FIELD_DAY_OF_MONTH</span><span style="color: #007700">), </span><span style="color: #FF8000">// 30<br />    </span><span style="color: #0000BB">$cal</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getMaximum</span><span style="color: #007700">(</span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">FIELD_DAY_OF_MONTH</span><span style="color: #007700">)        </span><span style="color: #FF8000">// 31<br /></span><span style="color: #007700">);</span></span></code></div>
    </div>

    <div class="example-contents"><p>以上示例会输出：</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">int(28)
int(30)
int(31)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-intlcalendar.getleastmaximum-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="intlcalendar.getactualmaximum.php" class="methodname" rel="rdfs-seeAlso">IntlCalendar::getActualMaximum()</a> - The maximum value for a field, considering the objectʼs current time</span></li>
    <li><span class="methodname"><a href="intlcalendar.getmaximum.php" class="methodname" rel="rdfs-seeAlso">IntlCalendar::getMaximum()</a> - Get the global maximum value for a field</span></li>
    <li><span class="methodname"><a href="intlcalendar.getgreatestminimum.php" class="methodname" rel="rdfs-seeAlso">IntlCalendar::getGreatestMinimum()</a> - Get the largest local minimum value for a field</span></li>
   </ul>
  </p>
 </div>

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