array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'rarentry.getmethod.php', 1 => 'RarEntry::getMethod', 2 => 'Get pack method of the entry', ), 'up' => array ( 0 => 'class.rarentry.php', 1 => 'RarEntry', ), 'prev' => array ( 0 => 'rarentry.gethostos.php', 1 => 'RarEntry::getHostOs', ), 'next' => array ( 0 => 'rarentry.getname.php', 1 => 'RarEntry::getName', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/rar/rarentry/getmethod.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL rar >= 0.1)
RarEntry::getMethod — Get pack method of the entry
RarEntry::getMethod() returns number of the method used when adding current archive entry.
Bu işlevin bağımsız değişkeni yoktur.
Returns the method number or false on error.
Örnek 1 RarEntry::getMethod() example
<?php
$rar_file = rar_open('example.rar') or die("Failed to open Rar archive");
$entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("Failed to find such entry");
echo "Method number: " . $entry->getMethod();
?>