get_extension_funcs 


wizard apg

GETS an ARRAY with the names of the functions of a module.



<?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 
?>
 

  $module_name   


The module name to get the extension functions.



<?php

array get_loaded_extensions(bool $zend_extensions false)

where,

$zend_extensions Name of loaded extension

?>
 

  1 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.18
80218
NDXEXTENSION NAMES
0Core
1date
2libxml
3openssl
4pcre
5zlib
6filter
7hash
8json
9pcntl
10random
11readline
12Reflection
13SPL
14session
15standard
16litespeed
17bcmath
18bz2
19calendar
20ctype
21curl
22dom
23mbstring
24fileinfo
25ftp
26gd
27gettext
28gmp
29iconv
30imap
31intl
32exif
33mysqlnd
34odbc
35PDO
36pgsql
37Phar
38posix
39pspell
40SimpleXML
41soap
42sockets
43sodium
44sqlite3
45tidy
46tokenizer
47xml
48xmlwriter
49xsl
50zip
51mysqli
52pdo_mysql
53PDO_ODBC
54pdo_pgsql
55pdo_sqlite
56xmlreader
57apcu
58imagick
59Zend OPcache
ed48

  2 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.18
80218
NDXEXTENSION NAMES
0Zend OPcache
ed48

  3 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.18
80218
NDXFUNCTION NAMES
ed48