
<?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
?>
EXERCISE
<style>
.t5 { background:turquoise; font-size:10px; text-align:center; }
.t6 { background:yellow; 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><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 != 'imagick')
{
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.30 80230 | |
| 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 | |
EXERCISE
<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.30 80230 | |
| NDX | EXTENSION NAMES |
| 0 | Zend OPcache |
| ed48 | |
EXERCISE
<style>
.t5 { background:turquoise; font-size:10px; text-align:center; }
.t6 { background:yellow; 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><td colspan="2">AVAILABLE "imagick" 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
/*
No extensions will be displayed in this exercise!
*/
$xt = "imagick";
$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 "imagick" FUNCTIONS STUDIED IN THIS TUTORIAL php 8.2.30 80230 | |
| NDX | FUNCTION NAMES |
| ed48 | |