<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.rarentry.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'rarentry.getname.php',
    1 => 'RarEntry::getName',
    2 => 'Get name of the entry',
  ),
  'up' => 
  array (
    0 => 'class.rarentry.php',
    1 => 'RarEntry',
  ),
  'prev' => 
  array (
    0 => 'rarentry.getmethod.php',
    1 => 'RarEntry::getMethod',
  ),
  'next' => 
  array (
    0 => 'rarentry.getpackedsize.php',
    1 => 'RarEntry::getPackedSize',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/rar/rarentry/getname.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="rarentry.getname" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">RarEntry::getName</h1>
  <p class="verinfo">(PECL rar &gt;= 0.1)</p><p class="refpurpose"><span class="refname">RarEntry::getName</span> &mdash; <span class="dc-title">Get name of the entry</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-rarentry.getname-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>RarEntry::getName</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="simpara">
   Returns the name (with path) of the archive entry.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-rarentry.getname-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-rarentry.getname-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="simpara">
   Returns the entry name as a string, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on error.
  </p>
 </div>


  <div class="refsect1 changelog" id="refsect1-rarentry.getname-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>PECL rar 2.0.0</td>
      <td>
       As of version 2.0.0, the returned string is encoded in Unicode/UTF-8.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-rarentry.getname-examples">
  <h3 class="title">Beispiele</h3>
  <div class="example" id="example-1">
   <p><strong>Beispiel #1 <span class="methodname"><strong>RarEntry::getName()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">//this example is safe even in pages not encoded in UTF-8<br />//for those encoded in UTF-8, the call to mb_convert_encoding is unnecessary<br /><br /></span><span style="color: #0000BB">$rar_file </span><span style="color: #007700">= </span><span style="color: #0000BB">rar_open</span><span style="color: #007700">(</span><span style="color: #DD0000">'example.rar'</span><span style="color: #007700">) or die(</span><span style="color: #DD0000">"Failed to open Rar archive"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$entry </span><span style="color: #007700">= </span><span style="color: #0000BB">rar_entry_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$rar_file</span><span style="color: #007700">, </span><span style="color: #DD0000">'Dir/file.txt'</span><span style="color: #007700">) or die(</span><span style="color: #DD0000">"Failed to find such entry"</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #DD0000">"Entry name: " </span><span style="color: #007700">. </span><span style="color: #0000BB">mb_convert_encoding</span><span style="color: #007700">(<br />    </span><span style="color: #0000BB">htmlentities</span><span style="color: #007700">(<br />        </span><span style="color: #0000BB">$entry</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getName</span><span style="color: #007700">(),<br />        </span><span style="color: #0000BB">ENT_COMPAT</span><span style="color: #007700">,<br />        </span><span style="color: #DD0000">"UTF-8"<br />    </span><span style="color: #007700">),<br />    </span><span style="color: #DD0000">"HTML-ENTITIES"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"UTF-8"<br /></span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>


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