how to install php7.4 in ubuntu 16.04 code example
Example 1: install php 5.6 on ubuntu 18.04
$ sudo add-apt-repository ppa:ondrej/php
Example 2: install php 7.4 ubuntu
sudo apt update
sudo apt install php php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath