title: Uninstall php 7 in ubuntu 18.04
body: <p>I have a server that has an application that runs with PHP 5.6. But I upgraded the server from Ubuntu 14.04 to 18.04 and in the process I also upgraded PHP to 7.2.
  Now I'm trying to uninstall it but I'm finding difficult.</p>
  
  <p>I have run the command:</p>
  
  <p><code>sudo apt-get remove php</code></p>
  
  <p>and</p>
  
  <p><code>sudo apt-get remove --purge php</code></p>
  
  <p>Its says that PHP it's not installed, but running 
  <code>php --version</code>
  I'm still seeing the version 7 of PHP.</p>
  
  <blockquote>
    <p>PHP 7.2.19-0ubuntu0.18.04.2 (cli) (built: Aug 12 2019 19:34:28) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
        with Zend OPcache v7.2.19-0ubuntu0.18.04.2, Copyright (c) 1999-2018, by Zend Technologies</p>
  </blockquote>