更新时间:2023-01-16 11:03:09
要在MacBook上获取最新版本(或您已经拥有的任何版本),请使用:
To get the latest version (or whatever version you already have) on your MacBook, use:
brew install php --with-cgi --with-debug --with-libmysql
请注意,本杰明的答案是相似的.但是,当我已经在v717上安装v54时并不理想,因此仅使用不带该版本的"php"将获得最新的版本.
Note that Benjamin's answer is similar. However, it's not ideal to install v54 when I'm already on v717, so using just "php" without the version would get the latest one.