<?php
bool extension_loaded ( string $extension )
where,
$extension = The name of the extension
?>
<?php
// The result of this exercise will depend
// of the configuration of your system
$arrext01 = [ 1 =>'standard', 2 => 'bcmath', 3 => 'gmp' ];
for($i01 = 1; $i01 <= 3; $i01++)
{
if(extension_loaded($arrext01[$i01]))
{
echo 'The extension "' . $arrext01[$i01] . '" is loaded!<br><br>';
}
else
{
echo 'The extension "' . $arrext01[$i01] . '" is NOT loaded!<br><br>';
}
}
?>