更新
brew update
brew upgrade
安裝
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
查看版本
brew unlink php70
brew install php71
開啟調(diào)試模式
$ php -a
Interactive shell
php > echo 5+8;
13
php > function addTwo($n)
php > {
php { return $n + 2;
php { }
php > var_dump(addtwo(2));
int(4)
php >