I have installed the latest version of php using brew install php71 , it then warns me that this version is already installed , Warning: homebrew/php/php71-7.1.5_17 already installed , but when I check the version I'm told I'm using PHP 5.6.30 (cli) (built: Feb 7 2017 16:18:37)
Copyright (c) 1997-2016 The PHP Group. How do I change it to version 7.1?
brew unlink php56 // if you previously installed using Homebrew
brew link php71
An make sure that the Homebrew install path (usually /usr/local/bin) is in your PATH by modifying the PATH variable in your .zshrc or equivalent, for example: