how to uninstall php from ubuntu 18.04 server code example
Example: uninstall php ubuntu 18.04
$ sudo apt-get purge php7.*
$ sudo apt-get autoclean
$ sudo apt-get autoremove
$ sudo apt-get purge php7.*
$ sudo apt-get autoclean
$ sudo apt-get autoremove