|
PharFileInfo::__constructConstruct a Phar entry object Description
public PharFileInfo::__construct
( string
$entry
)This should not be called directly. Instead, a PharFileInfo object is initialized by calling Phar::offsetGet through array access. Parameters
Errors/ExceptionsThrows BadMethodCallException if __construct() is called twice. Throws UnexpectedValueException if the phar URL requested is malformed, the requested phar cannot be opened, or the file can't be found within the phar. Examples
Example #1 A PharFileInfo::__construct example
<?php The above example will output: line number 1: hi line number 2: there line number 3: dude line number 1: hi line number 2: there line number 3: dude |