$configphpVersion()

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

NameType(s)Description
$minVersionstring null

Return value

bool


$config methods and properties

API reference based on ProcessWire core version 3.0.251