Use version_compare() to Compare PHP Versions

Use version_compare() to Compare PHP Versions

The version_compare() function compares two PHP version numbers. This is useful for checking if your script is running on a compatible version of PHP.

← Back to Tips List