check whether an extension is loaded – PHP

$extensionName=”curl”;//extension name to be checked
if(!extension_loaded($extensionName)) {
echo “The extension is not loaded”;
}
Share

Leave a Reply

Your email address will not be published. Required fields are marked *