-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
matchPackageVersion
Description
Checks if version matches any of the versions in versions.
Syntax
bool matchPackageVersion (string $version, array $versions)
Parameter $version
Expected type: String
Description: The version to match
Parameter $versions
Expected type: Array
Description: An array of versions that $version should be matched against
Return value
Expected type: Boolean
Description: Whether or not the versions matched
Notes
- Supports comma separated version numbers, with or without whitespace.
- Supports lower and upper bounds. (1.0-1.2)
- Returns true if the version matched.
- Compares any previous version(s) of a package that you have installed with the "from" parameter of an upgrade tag
- Compares your SMF version with the "for" parameter of an install, uninstall or upgrade tag.
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.122 seconds with 13 queries.
- Forum Search