Phar::getVersion
Phar::getVersion
(PHP >= 5.3.0, PECL phar >= 1.0.0)
Phar::getVersion — Return version info of Phar archive
Description
public string Phar::getVersion ( void )
Returns the API version of an opened Phar archive.
Parameters
Return Values
The opened archive's API version. This is not to be confused with the API version that the loaded phar extension will use to create new phars. Each Phar archive has the API version hard-coded into its manifest. See Phar file format documentation for more information.
See Also
- Phar::apiVersion() - Returns the api version
← Phar::getSupportedSignatures
Phar::hasMetadata →
© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.