<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.calendar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.cal-days-in-month.php',
    1 => 'cal_days_in_month',
    2 => 'Restituisce il numero di giorni di un mese per un dato anno e calendario',
  ),
  'up' => 
  array (
    0 => 'ref.calendar.php',
    1 => 'Calendar Funzioni',
  ),
  'prev' => 
  array (
    0 => 'ref.calendar.php',
    1 => 'Calendar Funzioni',
  ),
  'next' => 
  array (
    0 => 'function.cal-from-jd.php',
    1 => 'cal_from_jd',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/calendar/functions/cal-days-in-month.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.cal-days-in-month" class="refentry"> 
   <div class="refnamediv">
    <h1 class="refname">cal_days_in_month</h1>
    <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">cal_days_in_month</span> &mdash; <span class="dc-title">Restituisce il numero di giorni di un mese per un dato anno e calendario</span></p>

   </div>
   <div class="refsect1 unknown-445" id="refsect1-function.cal-days-in-month-unknown-445">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>cal_days_in_month</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$calendario</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$mese</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$anno</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

    <p class="para rdfs-comment">
     Questa funzione restituisce il numero di giorni che compongono il
     <code class="parameter">mese</code> dell&#039;<code class="parameter">anno</code> nel
     <code class="parameter">calendar</code> specificato.
    </p>
    <p class="para">
     <div class="example" id="example-1">
      <p><strong>Example #1 esempio di <span class="function"><strong>cal_days_in_month()</strong></span></strong></p>
      <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$num </span><span style="color: #007700">= </span><span style="color: #0000BB">cal_days_in_month</span><span style="color: #007700">(</span><span style="color: #0000BB">CAL_GREGORIAN</span><span style="color: #007700">, </span><span style="color: #0000BB">8</span><span style="color: #007700">, </span><span style="color: #0000BB">2003</span><span style="color: #007700">); </span><span style="color: #FF8000">// 31<br /></span><span style="color: #007700">echo </span><span style="color: #DD0000">"C'erano </span><span style="color: #0000BB">$num</span><span style="color: #DD0000"> giorni nell'agosto del 2003"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
      </div>

     </div>
    </p>
    <p class="para">
     Vedere anche <span class="function"><a href="function.jdtounix.php" class="function">jdtounix()</a></span>.
    </p>
   </div>

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