title: Add php to $PATH on a Mac
body: <p>I installed php 8.0 on my MacBook pro (MacOS 11.2.3) using homebrew. I'm a newbie and I don't know if I added PHP to my $PATH correctly. My path in .bashrc looks like this: /Users/johnrimestad/Library/Python/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Cellar/php/8.0.3</p>
  <p>When I run &quot;which php&quot; in my terminal, it still shows the path of the older version: /usr/local/bin/php.</p>
  <p>Any advice is greatly appreciated</p>