<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'phar.delete.php',
    1 => 'Phar::delete',
    2 => 'Delete a file within a phar archive',
  ),
  'up' => 
  array (
    0 => 'class.phar.php',
    1 => 'Phar',
  ),
  'prev' => 
  array (
    0 => 'phar.delmetadata.php',
    1 => 'Phar::delMetadata',
  ),
  'next' => 
  array (
    0 => 'phar.destruct.php',
    1 => 'Phar::__destruct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/phar/Phar/delete.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="phar.delete" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Phar::delete</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL phar &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">Phar::delete</span> &mdash; <span class="dc-title">Delete a file within a phar archive</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-phar.delete-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Phar::delete</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$localName</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
<p class="para"><span class="classname"><a href="class.phar.php" class="classname">Phar</a></span> nesneleri ile çalışmak için, bu yöntem
<code class="literal">phar.readonly</code> <var class="filename">php.ini</var> yönergesine <code class="literal">0</code>
atanmış olmasını gerektirir. Aksi takdirde bir
<span class="classname"><a href="class.pharexception.php" class="classname">PharException</a></span> istisnası oluşur.</p></p></blockquote>

  <p class="para">
   Delete a file within an archive.  This is the functional equivalent of
   calling <span class="function"><a href="function.unlink.php" class="function">unlink()</a></span> on the stream wrapper equivalent,
   as shown in the example below.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-phar.delete-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">localName</code></dt>
     <dd>
      <p class="para">
       Path within an archive to the file to delete.
      </p>
     </dd>
    
   </dl>
  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-phar.delete-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Daima <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> döndürür.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-phar.delete-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>
  <p class="para">
   Throws <span class="classname"><a href="class.pharexception.php" class="classname">PharException</a></span> if errors occur while flushing
   changes to disk.
  </p>
 </div>



 <div class="refsect1 examples" id="refsect1-phar.delete-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 A <span class="function"><strong>Phar::delete()</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">try {<br />    </span><span style="color: #0000BB">$phar </span><span style="color: #007700">= new </span><span style="color: #0000BB">Phar</span><span style="color: #007700">(</span><span style="color: #DD0000">'myphar.phar'</span><span style="color: #007700">);<br />    </span><span style="color: #0000BB">$phar</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">delete</span><span style="color: #007700">(</span><span style="color: #DD0000">'unlink/me.php'</span><span style="color: #007700">);<br />    </span><span style="color: #FF8000">// this is equivalent to:<br />    </span><span style="color: #0000BB">unlink</span><span style="color: #007700">(</span><span style="color: #DD0000">'phar://myphar.phar/unlink/me.php'</span><span style="color: #007700">);<br />} catch (</span><span style="color: #0000BB">Exception $e</span><span style="color: #007700">) {<br />    </span><span style="color: #FF8000">// handle errors<br /></span><span style="color: #007700">}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-phar.delete-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="phardata.delete.php" class="function" rel="rdfs-seeAlso">PharData::delete()</a> - Delete a file within a tar/zip archive</span></li>
    <li><span class="function"><a href="phar.unlinkarchive.php" class="function" rel="rdfs-seeAlso">Phar::unlinkArchive()</a> - Completely remove a phar archive from disk and from memory</span></li>
   </ul>
  </p>
 </div>


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