ubuntu upgrade php 5.6 to 7 code example
Example 1: ubuntu 16 upgrade php 7.0 to 7.4
sudo apt install -y php7.4-mysqli php7.4-pdo php7.4-sqlite3 php7.4-ctype php7.4-fileinfo php7.4-zip php7.4-exif
Example 2: ubuntu 16 upgrade php 7.0 to 7.4
sudo apt-add-repository ppa:ondrej/php