Ubuntu - phpinfo shows old version after PHP 7.0 upgrade

So, you are also among those who took peek sneak of php 7.0 using the ppa:ondrej.

And now after upgrading php7.0 version, you are still seeing old version in your phpinfo file. And, you might be seeing the updated PHP version while viewing in CLI (php -v).

So, all you need to do is to remove php7.0 (yes, remove php7.0) and then install it again. But make sure you run the commands in following order.

$ apt-get remove php7.0
$ apt-get remove php7.0-common
$ apt-get update
$ apt-get autoremove
$ apt-get update
$ apt-get install php7.0 php7.0-common
$ apt-get update
$ service [YOUR WEB SERVER SERVICE] restart

This should resolve your issue of PHP 7.0 version which was not showing correctly in the phpinfo file.