PHP » GoLang |
login |
register |
about
|
GoLang PharFileInfo::__construct
request it (336)
GoLang replacement for PHP's PharFileInfo::__construct
[edit | history]
PharFileInfo::__construct(PHP 5 >= 5.3.0, PHP 7, PECL phar >= 1.0.0) PharFileInfo::__construct — Construct 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 |
more
Recently updated
more
Most requested
more
Last requests
|