$config->phpVersion() method

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.125

Twitter updates

  • New post: This week we take a look at what’s in ProcessWire 3.0.126 which focuses largely on resolving issue reports, but also includes a handy new Page if() method— More
    15 February 2019
  • New post: ProcessWire 3.0.125 has several useful new Sanitizer methods & options, plus new ways to access them directly from the Input API variable. This makes handling user input even easier than before. Plus updates to our i18n functions & API docs— More
    25 January 2019
  • New post: In this week’s post, we’ll take a look a look at the new website and focus on some parts of it and how they were built. Then we’ll dive into the latest version of ProcessWire on the dev branch, version 3.0.124— More
    11 January 2019

Latest news

  • ProcessWire Weekly #250
    In the 250th issue of ProcessWire Weekly we'll walk you through some of the latest dev branch updates, take a closer look at PushAlert Notifications and TinyBar modules, and introduce a new site of the week. Read on!
    Weekly.pw / 23 February 2019
  • ProcessWire 3.0.126 core updates
    This week we take a look at what’s in ProcessWire 3.0.126 which focuses largely on resolving issue reports, but also includes a handy new $page->if() method. 
    Blog / 15 February 2019
  • Subscribe to weekly ProcessWire news

“The end client and designer love the ease at which they can update the website. Training beyond how to log in wasn’t even necessary since ProcessWire’s default interface is straightforward.” —Jonathan Lahijani