title: Mac completely uninstall php that was not installed from brew
body: <p>I'm running Mac Catalina and want to remove the php version to downgrade to php7.2 <strong>possibly use brew from now on.</strong></p>
  <p>At the moment I have this.</p>
  <p>I don't care much about the error but want I want to achieve is removing completely remove 7.3.11 and then reinstall from brew. I can't find anything about replacing php that is not coming from brew. Please help.</p>
  <pre><code>$ php -v
  PHP Warning:  PHP Startup: Unable to load dynamic library 'php_imap.dll' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll), /usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll.so)) in Unknown on line 0
  PHP 7.3.11 (cli) (built: Jun  5 2020 23:50:40) ( NTS )
  Copyright (c) 1997-2018 The PHP Group
  Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
  </code></pre>