Upgrade question Ubuntu 16.04 to 18.04 server upgrade

Solved. Followed the 16.04 to 18.04 instructions. After sudo apt upgrade entered Y, N, N but it was at old 16.04 php7.0 and had to do a sudo apt-get install php7.2 php7.2-fpm php7.2-cli php7.2-curl php7.2-gd php7.2-mysql php7.2-gd php7.2-imagick php7.2-recode php7.2-tidy php7.2-xmlrpc php7.2-mbstring zip unzip php7.2-common php7.2-opcache

18.04 uses php7.2

This a Nginx web server.
It worked.