<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.phar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'phar.apiversion.php',
    1 => 'Phar::apiVersion',
    2 => 'Returns the api version',
  ),
  'up' => 
  array (
    0 => 'class.phar.php',
    1 => 'Phar',
  ),
  'prev' => 
  array (
    0 => 'phar.addfromstring.php',
    1 => 'Phar::addFromString',
  ),
  'next' => 
  array (
    0 => 'phar.buildfromdirectory.php',
    1 => 'Phar::buildFromDirectory',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/phar/Phar/apiVersion.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="phar.apiversion" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Phar::apiVersion</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL phar &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">Phar::apiVersion</span> &mdash; <span class="dc-title">Returns the api version</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-phar.apiversion-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>Phar::apiVersion</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>


  <p class="para rdfs-comment">
   Return the API version of the phar file format that will be
   used when creating phars.  The Phar extension supports reading API
   version 1.0.0 or newer.  API version 1.1.0 is required for SHA-256 and SHA-512
   hash, and API version 1.1.1 is required to store empty directories.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-phar.apiversion-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-phar.apiversion-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The API version string as in <code class="literal">&quot;1.0.0&quot;</code>.
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-phar.apiversion-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>示例 #1 A <span class="function"><strong>Phar::apiVersion()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">Phar</span><span style="color: #007700">::</span><span style="color: #0000BB">apiVersion</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>以上示例会输出：</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">1.1.1</pre>
</div>
    </div>
   </div>
  </p>
 </div>


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