Sophie

Sophie

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

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>Returns the day of the week</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.gregoriantojd.html">GregorianToJD</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.jdmonthname.html">JDMonthName</a></div>
 <div class="up"><a href="ref.calendar.html">Calendar Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.jddayofweek" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">JDDayOfWeek</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">JDDayOfWeek</span> &mdash; <span class="dc-title">Returns the day of the week</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.jddayofweek-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>jddayofweek</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$julianday</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code><span class="initializer"> = CAL_DOW_DAYNO</span></span>
  ] )</div>

  <p class="para rdfs-comment">
   Returns the day of the week.  Can return a string or an integer
   depending on the mode.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.jddayofweek-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">julianday</code></em></span>
     <dd>

      <p class="para">
       A julian day number as integer
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">mode</code></em></span>
     <dd>

      <table class="doctable table">
       <caption><strong>Calendar week modes</strong></caption>
       
        <thead>
         <tr>
          <th>Mode</th>
          <th>Meaning</th>
         </tr>

        </thead>

        <tbody class="tbody">
         <tr>
          <td>0 (Default)</td> 
          <td>
           Return the day number as an int (0=Sunday, 1=Monday, etc)
          </td>
         </tr>

         <tr>
          <td>1</td> 
          <td>
           Returns string containing the day of week
           (English-Gregorian)
          </td>
         </tr>

         <tr>
          <td>2</td> 
          <td>
           Return a string containing the abbreviated day of week
           (English-Gregorian)
          </td>
         </tr>

        </tbody>
       
      </table>

     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.jddayofweek-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   The gregorian weekday as either an integer or string.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.gregoriantojd.html">GregorianToJD</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.jdmonthname.html">JDMonthName</a></div>
 <div class="up"><a href="ref.calendar.html">Calendar Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>