If you are using Ubuntu and want to set a different version for php, considering multiple version of php is installed in your system
sudo update-alternatives --set php /usr/bin/php7.0
Set php7.0 as the default version.
--
Links:
https://www.tecmint.com/install-different-php-versions-in-ubuntu/
https://jakelprice.com/article/how-to-upgrade-from-php-70-to-php-71
Technologies: