|
PharFileInfo::__constructConstruct a Phar entry object Beschreibung
public PharFileInfo::__construct
( string
$entry
)This should not be called directly. Instead, a PharFileInfo object is initialized by calling Phar::offsetGet through array access. Parameter-Liste
Fehler/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. Beispiele
Beispiel #1 A PharFileInfo::__construct example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: line number 1: hi line number 2: there line number 3: dude line number 1: hi line number 2: there line number 3: dude |