Most of the time we use phpinfo() to check all the PHP modules but if you want to check any particular module then you can follow below steps:
You can put a php file like test.php and check desired modules.
Here we are checking dom,gd and mbstring support. Suppose there are all three modules are installed on server then you will get output like below:
You can put a php file like test.php and check desired modules.
Code:
<?php
echo "DOM: ", extension_loaded('dom') ? 'OK' : 'MISSING', '<br>';
echo "GD: ", extension_loaded('gd') ? 'OK' : 'MISSING', '<br>';
echo "MBSTRING: ", extension_loaded('mbstring') ? 'OK' : 'MISSING', '<br>';
?>
Code:
DOM: OK
GD: OK
MBSTRING: OK