当前位置:网站首页>How to get the PHP version- How to get the PHP Version?

How to get the PHP version- How to get the PHP Version?

2022-07-06 01:13:00 javail

problem :

Is there a way to check the version of PHP that executed a particular script from within that script? Is there any way to check the execution of a specific script from this script PHP edition ?So for example, the following snippet for example , The following code snippet

$version = way_to_get_version();print $version;

would print 5.3.0 on one machine, and 5.3.1 on another machine. Will print on one machine 5.3.0, Print on another machine 5.3.1.


Solution :

Reference resources : https://stackoom.com/en/question/8rw3
原网站

版权声明
本文为[javail]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140135587727.html