Uninstall & install new PHP version
Installing (and uninstalling) new PHP version was always a trouble. This time, I found a proper way to handle this.
1 min read
brew unlink email@example.com brew install php brew link php
You can be specific about which version of php you wish to delete / install.
brew link php@whatever-version-installed does not work, may need to try:
This opens vim editor. We need to add following code to the editor:
We need to source the file to apply new changes permanently.
php -v which php