Home > Article > PHP Framework > Three ways to check the current version number of thinkphp
The following tutorial column of thinkphp will introduce you to three methods of checking the current version number of thinkphp. I hope it will be helpful to friends in need!
There are two ways to check the current thinkphp version, the first one I commonly use
( Version 5.0 and below)
TP defines a constant (THINK_VERSION),
is used to store the version number of the current system. If you need to check, you can print it directlyvar_dump(THINK_VERSION );
## The second type (version 5.1)
php think version
The third type (5.1 version)
var_dump(App::version());
The above is the detailed content of Three ways to check the current version number of thinkphp. For more information, please follow other related articles on the PHP Chinese website!