其实就是一条Linux命令,如下:
会出现下面选项:
There are 2 choices for the alternative PHP (providing /usr/bin/PHP). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/bin/PHP7.1 71 auto mode 1 /usr/bin/PHP7.0 70 manual mode 2 /usr/bin/PHP7.1 71 manual mode Press <enter> to keep the current choice[*],or type selection number:
输入其中一项数字即可实现PHP版本切换
如何判断版本是否切换成功?PHP -v
命令进行前后版本对比即可看出。