Por*_*oru 11 php release version
我怎么能检测到我的PHP脚本需要哪个版本的PHP?像PHP5或PHP4这样的通用版本我可以自己知道,但是有一些功能不会添加到次要版本中.
rav*_*ren 10
其中一种方法是:
if (!function_exists('function_name')) {
// the PHP version is not sufficient
}
Run Code Online (Sandbox Code Playgroud)