This article mainly introduces the multi-version switching of php ubuntu. It has certain reference value. Now I share it with everyone. Friends in need can refer to it.
There are several php versions installed in the system, but php -cli has always been something I wanted to switch. I used to think about modifying environment variables
I saw a good switching version of the command
update-alternatives --config php
Perfect switching
The above is the detailed content of php ubuntu multi-version switching. For more information, please follow other related articles on the PHP Chinese website!