Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<PharFileInfo::getCompressedSizePharFileInfo::getMetadata>
^PharFileInfoLast updated: Mon, 26 Oct 2026

PharFileInfo::getContent

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

PharFileInfo::getContent — Get the complete file contents of the entry

Description

public function PharFileInfo::getContent(): string

This function behaves like file_get_contents() but for Phar.

Parameters

This function has no parameters.

Return Values

Returns the file contents.


<PharFileInfo::getCompressedSizePharFileInfo::getMetadata>
^PharFileInfoLast updated: Mon, 26 Oct 2026