After installing PHP and it’s extensions, you may want to check if the extensions are working and are available
A quick way to check is per the command below.
First check all php extensions
php -m

To check for a Specific Extension.
Command to use.
php -i|grep -i mysqli
This checks if mysqli extension required for connecting to a mysql database is installed.

Output.

That’s it.
You can check for other extensions as well using the command above.