get_extension_funcs 


php128 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

?>
 

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

<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
NDXEXTENSION NAMES
0Zend 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
NDXFUNCTION NAMES
0exif_tagname
1exif_read_data
2exif_thumbnail
3exif_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($v32'<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>