<?php
array|false get_extension_funcs ( string $extension )
where,
$extension = Name of the extension to be checked
One of the extension names
obtained through the function:
get_loaded_extensions
?>
<?php
array get_loaded_extensions(bool $zend_extensions = false)
where,
$zend_extensions = Name of loaded extension
?>
<table width="100%" cellspacing="3" cellpadding="3"
border="1" align="center">
<tr><td colspan="2">AVAILABLE LOADED EXTENSION<br>
STUDIED IN THIS TUTORIAL<br> $zend_extensions = false<br>
<?php echo 'php ' . PHP_VERSION . '<br>' . PHP_VERSION_ID; ?></td></tr>
<tr><td>NDX</td><td>EXTENSION NAMES</td></tr>
<?php
$falseortrue = FALSE;
$gtldext01 = get_loaded_extensions ($falseortrue);
foreach ( $gtldext01 as $k => $ext01 )
{
if($ext01 != 'exif')
{
echo '<tr><td>' . $k . '</td><td class="t5">' . $ext01 . '</td></tr>';
}
else
{
echo '<tr><td>' . $k . '</td><td class="t6">' . $ext01 . '</td></tr>';
}
}
?>
<tr><td colspan="2">ed48</td></tr></table>
AVAILABLE LOADED EXTENSION STUDIED IN THIS TUTORIAL $zend_extensions = false php 8.2.22 80222 | |
NDX | EXTENSION NAMES |
0 | Core |
1 | date |
2 | libxml |
3 | openssl |
4 | pcre |
5 | zlib |
6 | filter |
7 | hash |
8 | json |
9 | pcntl |
10 | random |
11 | readline |
12 | Reflection |
13 | SPL |
14 | session |
15 | standard |
16 | litespeed |
17 | bcmath |
18 | bz2 |
19 | calendar |
20 | ctype |
21 | curl |
22 | dom |
23 | mbstring |
24 | fileinfo |
25 | ftp |
26 | gd |
27 | gettext |
28 | gmp |
29 | iconv |
30 | imap |
31 | intl |
32 | exif |
33 | mysqlnd |
34 | odbc |
35 | PDO |
36 | pgsql |
37 | Phar |
38 | posix |
39 | pspell |
40 | SimpleXML |
41 | soap |
42 | sockets |
43 | sodium |
44 | sqlite3 |
45 | tidy |
46 | tokenizer |
47 | xml |
48 | xmlwriter |
49 | xsl |
50 | zip |
51 | mysqli |
52 | pdo_mysql |
53 | PDO_ODBC |
54 | pdo_pgsql |
55 | pdo_sqlite |
56 | xmlreader |
57 | apcu |
58 | imagick |
59 | Zend OPcache |
ed48 |
<table width="100%" cellspacing="3" cellpadding="3"
border="1" align="center">
<tr><td colspan="2">AVAILABLE LOADED EXTENSION<br>
STUDIED IN THIS TUTORIAL<br>$zend_extensions = true<br>
<?php echo 'php ' . PHP_VERSION . '<br>' . PHP_VERSION_ID; ?></td></tr>
<tr><td>NDX</td><td>EXTENSION NAMES</td></tr>
<?php
$falseortrue = true;
$gtldext02 = get_loaded_extensions ($falseortrue);
foreach ( $gtldext02 as $k => $ext02 )
{
echo '<tr><td>' . $k . '</td><td>' . $ext02 . '</td></tr>';
}
?>
<tr><td colspan="2">ed48</td></tr></table>
AVAILABLE LOADED EXTENSION STUDIED IN THIS TUTORIAL $zend_extensions = true php 8.2.22 80222 | |
NDX | EXTENSION NAMES |
0 | Zend OPcache |
ed48 |
<table width="100%" cellspacing="3" cellpadding="3"
border="1" align="center">
<tr><td colspan="2">AVAILABLE "exif" FUNCTIONS<br>
STUDIED IN THIS TUTORIAL<br><?php echo 'php ' . PHP_VERSION .
'<br>' . PHP_VERSION_ID; ?></td></tr>
<tr><td>NDX</td><td>FUNCTION NAMES</td></tr>
<?php
$xt = "exif";
$exts01 = get_extension_funcs ($xt);
foreach ( $exts01 as $k => $func )
{
echo '<tr><td>' . $k . '</td><td class="t6">' . $func . '</td></tr>';
}
?>
<tr><td colspan="2">ed48</td></tr></table>
AVAILABLE "exif" FUNCTIONS STUDIED IN THIS TUTORIAL php 8.2.22 80222 | |
NDX | FUNCTION NAMES |
0 | exif_tagname |
1 | exif_read_data |
2 | exif_thumbnail |
3 | exif_imagetype |
ed48 |
<style>
.t1 { background-color:#00CCFF; font-size:10px; text-align:center;}
.t3 { background:cyan; font-size:10px; text-align:center; }
.t14 { background-color:#00CCFF; font-size:14px; text-align:center;}
</style>
<table width="100%" cellspacing="3" cellpadding="3"
border="1" align="center">
<tr class="t14"><td colspan="2">AVAILABLE FUNCTIONS<br>
SOME FUNCTIONS STUDIED IN THIS TUTORIAL<br><?php echo 'php ' . PHP_VERSION .
'<br>' . PHP_VERSION_ID; ?></td></tr>
<tr class="t1"><td>NDX</td><td>FUNCTION NAMES</td></tr>
<?php
// The result of this exercise will depend
// of the configuration of your system
$exts = get_loaded_extensions ();
$ct = count($exts);
for ($i = 0; $i < $ct; $i++)
{
$mod = (array)get_extension_funcs ($exts[$i]);
echo '<tr class="t3"><td colspan="2">( ' . $i . ' ) ' . $exts[$i] . '</tr></td>';
foreach ( $mod as $k => $v ) {
if(strlen($v) >= 64)
{
echo '<tr class="t2"><td>' . $k . '</td><td>' . chunk_split($v, 32, '<br>') . '</td></tr>';
}
else
{
echo '<tr class="t2"><td>' . $k . '</td><td>' . $v . '</td></tr>';
}
} }
?>
<tr class="t1"><td colspan="2">ed48</td></tr></table>