get_loaded_extensions php function example - returns array of names of all modules compiled and loaded by PHP interpreter
get-loaded-extensions-php-function-example.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>get_loaded_extensions php function example - returns array of names of all modules compiled and loaded by PHP interpreter</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Md Iqbal Hosan">
<meta name="title" content="get_loaded_extensions php function example - returns array of names of all modules compiled and loaded by PHP interpreter">
<meta name="keywords" content="php, example, code, array, function, extensions, string, get_loaded_extensions">
<meta name="description" content="get_loaded_extensions php function example - returns array of names of all modules compiled and loaded by PHP interpreter">
<style>
h2, h4{background:orange; color:#000086;}
h2{ padding:3px; margin:3px; font-size:21px;}
h4{ padding:2px; margin:2px; font-size:18px;}
p{padding:2px; margin:2px; color:#0099FE;}
body{ background:#FFFFFC;}
</style>
</head>
<body>
<h2>get_loaded_extensions php function example - returns array of names of all modules compiled and loaded by PHP interpreter</h2>
<pre>
<?php
/*
--------------------------------------------------------------------------------------------
let say we want to know all modules (extensions) compiled and loaded by PHP interpreterhave
we can find this by using get_loaded_extensions() php function
--------------------------------------------------------------------------------------------
*/
$loadedModules = get_loaded_extensions();
echo "<h4>Compiled and Loaded modules(extensions):</h4>";
print_r($loadedModules);
/*
-------------------------------------------------------------------------------------------
this function rapidly used in professional programming to check which module or extensions
are loaded or not by PHP interpreter
-------------------------------------------------------------------------------------------
*/
?>
</pre>
</body>
</html>

No comments:
Post a Comment
leave your comments here..