Answer the question
In order to leave comments, you need to log in
How to update PHP on Mac OS X?
Hello. I have Mac OS X 10.11.6 (latest)
The console shows (php -v) that I have an old version of PHP
I tried updating PHP with Homebrew, but nothing changed. (There was a download and compilation of the seventh version)
UPD: I found a way. You need to enter in the console
export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question