Use phpinfo() to print the php version and use php on the server, phpinfophp
php -v is the php version of the Linux system, and what is displayed in phpinfo is the WEB Server version configured in. To put it simply, there are two php versions in your system.
http://www.bkjia.com/PHPjc/1087781.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1087781.htmlTechArticleUse phpinfo() to print the php version and use php on the server, phpinfophp php -v is for Linux system php version, and what is displayed in phpinfo is the version configured in the WEB Server. To put it simply,...