1. 首页
  2. WordPress 函数手册

is_php_version_compatible()

is_php_version_compatible( string $required )

检查与当前PHP版本的兼容性。
Checks compatibility with the current PHP version.

目录锚点:#参数#返回#源码


参数(Parameters)

参数 类型 必填 说明
$required (string) 必需 所需的最低PHP版本。

返回(Return)

(bool)如果所需版本兼容,则为True;如果不兼容,则为false。


源码(Source)


更新版本 源码位置 使用 被使用
5.2.0 wp-includes/functions.php:7577 6 0

is_php_version_compatible() 为WP2原创文章,链接:https://www.wp2.cn/functions/is_php_version_compatible/