Return true if current PHP version is equal to or newer than the given version
Available since version 3.0.101.
Example
if($config->phpVersion('7.0.0')) {
// PHP version is 7.x
}
Usage
$bool = $config->phpVersion($minVersion);
Arguments
Name | Type(s) | Description |
---|---|---|
minVersion | string, null |
Return value
bool
$config methods and properties
API reference based on ProcessWire core version 3.0.236