array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'class.phar.php', 1 => 'Phar', ), 'up' => array ( 0 => 'book.phar.php', 1 => 'Phar', ), 'prev' => array ( 0 => 'phar.fileformat.signature.php', 1 => 'Phar Signature format', ), 'next' => array ( 0 => 'phar.addemptydir.php', 1 => 'Phar::addEmptyDir', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/phar/Phar.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.phar.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0)
The Phar class provides a high-level interface to accessing and creating phar archives.
$filename
, int $flags
= FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS, ?string $alias
= null
)$format
= null
, ?int $compression
= null
, ?string $extension
= null
): ?PharData$format
= null
, ?int $compression
= null
, ?string $extension
= null
): ?Phar$alias
= null
,$index
= null
,$fileNotFoundScript
= null
,$mimeTypes
= [],$rewrite
= null
$mode
= "r", bool $useIncludePath
= false
, ?resource $context
= null
): SplFileObject