I have 2 versions of php installed on my macOS. When I restart the computer it is set by default to php 5.6 (I have already twice installed php 7 and it is available only till the next restart). How can I set the default to be 7.0? what should I do in .bash_profile? (to what should I change the home path of the php variable?)
If you install PHP with Homebrew, you might need to unlink the 5.6 version. Like:
$ brew unlink php56
Then you may start to install PHP 7.2
You can get more information from my article: