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

  $extension   


The module name to get the extension functions.




In order to have a complete list of all the functions available in each of the installed extensions, we use get_loaded_extensions which provides the names of said extensions in the format of an ARRAY.


<?php
              
array get_loaded_extensions([ bool $zend_extensions FALSE ] ) 


where

$zend_extensions = if TRUE only return Zend extensions 
                             The 
default, FALSE return regular extensions 

?>
 


So, we use get_extension_funcs to know the names of the functions available in each extension.

Therefore, run the next exercise to see what functions are available in each extension present in your system.

We will study all MATHEMATICS functions available in the standard extensions.To those who believe in GOD:

MATHEMATICS is the language in which HE wrote the UNIVERSE.

MATHEMATICS, (from Greek μάθημα máthēma, "knowledge, study, learning"), includes the study of such topics as quantity, (number theory), structure (algebra), space (geometry), and change (mathematical analysis).

However, there is no general definition.

As this depends on the PHP version, run the next exercises on your system.


  1 EXERCISE   

<table width="100%" cellspacing="3" cellpadding="3" 
border="1" align="center">
<tbody><tr><td colspan="2">AVAILABLE FUNCTIONS</td></tr>
<tr><td>NAME</td><td>LIBRARY</td></tr>
<?php

// The result of this exercise will depend
// of the configuration of your system

$exts get_loaded_extensions ();

foreach ( 
$exts as $xt) {
    
$exts01 get_extension_funcs ($xt);

if( 
$exts01 != FALSE) {
    
foreach ( 
$exts01 as $func ) { 

echo 
'<tr><td>' $func '</td><td>' $xt '</td></tr>';
    
} } }
?>
<tr><td colspan="2">ed48</td></tr></tbody></table> 


  2 EXERCISE   

<?php

$ext 
"standard";

// The result of this exercise will depend
// of the configuration of your system

// The module name to get the extension functions,
// in this case: standard (case insentive)

if(extension_loaded($ext))
{
echo 
'<table width="100%" cellspacing="3" 
cellpadding="3" border="1" align="center">
<tbody><tr><td colspan="2">
                AVAILABLE standard FUNCTIONS</td></tr><tr><td>ANAME</td>
<td>EXT</td></tr>'
;

$mod get_extension_funcs ('standard');

foreach ( 
$mod as $k => $xt)
{
echo 
'<tr><td>' $xt '</td><td>' $ext '</td></tr>';   
}
echo 
'<tr><td colspan="2">ed48</td></tr></tbody></table>';
}
else
{
echo 
'The extension "' $ext '" is NOT loaded!<br>';
exit;
}    

?>



 RESULT   

standard FUNCTIONS
ORDNAME
1set_time_limit
2header_register_callback
3ob_start
4ob_flush
5ob_clean
6ob_end_flush
7ob_end_clean
8ob_get_flush
9ob_get_clean
10ob_get_contents
11ob_get_level
12ob_get_length
13ob_list_handlers
14ob_get_status
15ob_implicit_flush
16output_reset_rewrite_vars
17output_add_rewrite_var
18stream_wrapper_register
19stream_register_wrapper
20stream_wrapper_unregister
21stream_wrapper_restore
22array_push
23krsort
24ksort
25count
26sizeof
27natsort
28natcasesort
29asort
30arsort
31sort
32rsort
33usort
34uasort
35uksort
36end
37prev
38next
39reset
40current
41pos
42key
43min
44max
45array_walk
46array_walk_recursive
47in_array
48array_search
49extract
50compact
51array_fill
52array_fill_keys
53range
54shuffle
55array_pop
56array_shift
57array_unshift
58array_splice
59array_slice
60array_merge
61array_merge_recursive
62array_replace
63array_replace_recursive
64array_keys
65array_key_first
66array_key_last
67array_values
68array_count_values
69array_column
70array_reverse
71array_pad
72array_flip
73array_change_key_case
74array_unique
75array_intersect_key
76array_intersect_ukey
77array_intersect
78array_uintersect
79array_intersect_assoc
80array_uintersect_assoc
81array_intersect_uassoc
82array_uintersect_uassoc
83array_diff_key
84array_diff_ukey
85array_diff
86array_udiff
87array_diff_assoc
88array_diff_uassoc
89array_udiff_assoc
90array_udiff_uassoc
91array_multisort
92array_rand
93array_sum
94array_product
95array_reduce
96array_filter
97array_map
98array_key_exists
99key_exists
100array_chunk
101array_combine
102array_is_list
103base64_encode
104base64_decode
105constant
106ip2long
107long2ip
108getenv
109putenv
110getopt
111flush
112sleep
113usleep
114time_nanosleep
115time_sleep_until
116get_current_user
117get_cfg_var
118error_log
119error_get_last
120error_clear_last
121call_user_func
122call_user_func_array
123forward_static_call
124forward_static_call_array
125register_shutdown_function
126highlight_file
127show_source
128php_strip_whitespace
129highlight_string
130ini_get
131ini_get_all
132ini_set
133ini_alter
134ini_restore
135ini_parse_quantity
136set_include_path
137get_include_path
138print_r
139connection_aborted
140connection_status
141ignore_user_abort
142getservbyname
143getservbyport
144getprotobyname
145getprotobynumber
146register_tick_function
147unregister_tick_function
148is_uploaded_file
149move_uploaded_file
150parse_ini_file
151parse_ini_string
152sys_getloadavg
153get_browser
154crc32
155crypt
156strptime
157gethostname
158gethostbyaddr
159gethostbyname
160gethostbynamel
161dns_check_record
162checkdnsrr
163dns_get_record
164dns_get_mx
165getmxrr
166net_get_interfaces
167ftok
168hrtime
169md5
170md5_file
171getmyuid
172getmygid
173getmypid
174getmyinode
175getlastmod
176sha1
177sha1_file
178openlog
179closelog
180syslog
181inet_ntop
182inet_pton
183metaphone
184header
185header_remove
186setrawcookie
187setcookie
188http_response_code
189headers_sent
190headers_list
191htmlspecialchars
192htmlspecialchars_decode
193html_entity_decode
194htmlentities
195get_html_translation_table
196assert
197assert_options
198bin2hex
199hex2bin
200strspn
201strcspn
202nl_langinfo
203strcoll
204trim
205rtrim
206chop
207ltrim
208wordwrap
209explode
210implode
211join
212strtok
213strtoupper
214strtolower
215basename
216dirname
217pathinfo
218stristr
219strstr
220strchr
221strpos
222stripos
223strrpos
224strripos
225strrchr
226str_contains
227str_starts_with
228str_ends_with
229chunk_split
230substr
231substr_replace
232quotemeta
233ord
234chr
235ucfirst
236lcfirst
237ucwords
238strtr
239strrev
240similar_text
241addcslashes
242addslashes
243stripcslashes
244stripslashes
245str_replace
246str_ireplace
247hebrev
248nl2br
249strip_tags
250setlocale
251parse_str
252str_getcsv
253str_repeat
254count_chars
255strnatcmp
256localeconv
257strnatcasecmp
258substr_count
259str_pad
260sscanf
261str_rot13
262str_shuffle
263str_word_count
264str_split
265strpbrk
266substr_compare
267utf8_encode
268utf8_decode
269opendir
270dir
271closedir
272chdir
273getcwd
274rewinddir
275readdir
276scandir
277glob
278exec
279system
280passthru
281escapeshellcmd
282escapeshellarg
283shell_exec
284proc_nice
285flock
286get_meta_tags
287pclose
288popen
289readfile
290rewind
291rmdir
292umask
293fclose
294feof
295fgetc
296fgets
297fread
298fopen
299fscanf
300fpassthru
301ftruncate
302fstat
303fseek
304ftell
305fflush
306fsync
307fdatasync
308fwrite
309fputs
310mkdir
311rename
312copy
313tempnam
314tmpfile
315file
316file_get_contents
317unlink
318file_put_contents
319fputcsv
320fgetcsv
321realpath
322fnmatch
323sys_get_temp_dir
324fileatime
325filectime
326filegroup
327fileinode
328filemtime
329fileowner
330fileperms
331filesize
332filetype
333file_exists
334is_writable
335is_writeable
336is_readable
337is_executable
338is_file
339is_dir
340is_link
341stat
342lstat
343chown
344chgrp
345lchown
346lchgrp
347chmod
348touch
349clearstatcache
350disk_total_space
351disk_free_space
352diskfreespace
353realpath_cache_get
354realpath_cache_size
355sprintf
356printf
357vprintf
358vsprintf
359fprintf
360vfprintf
361fsockopen
362pfsockopen
363http_build_query
364image_type_to_mime_type
365image_type_to_extension
366getimagesize
367getimagesizefromstring
368phpinfo
369phpversion
370phpcredits
371php_sapi_name
372php_uname
373php_ini_scanned_files
374php_ini_loaded_file
375iptcembed
376iptcparse
377levenshtein
378readlink
379linkinfo
380symlink
381link
382mail
383abs
384ceil
385floor
386round
387sin
388cos
389tan
390asin
391acos
392atan
393atanh
394atan2
395sinh
396cosh
397tanh
398asinh
399acosh
400expm1
401log1p
402pi
403is_finite
404is_nan
405intdiv
406is_infinite
407pow
408exp
409log
410log10
411sqrt
412hypot
413deg2rad
414rad2deg
415bindec
416hexdec
417octdec
418decbin
419decoct
420dechex
421base_convert
422number_format
423fmod
424fdiv
425microtime
426gettimeofday
427getrusage
428pack
429unpack
430password_get_info
431password_hash
432password_needs_rehash
433password_verify
434password_algos
435proc_open
436proc_close
437proc_terminate
438proc_get_status
439quoted_printable_decode
440quoted_printable_encode
441soundex
442stream_select
443stream_context_create
444stream_context_set_params
445stream_context_get_params
446stream_context_set_option
447stream_context_get_options
448stream_context_get_default
449stream_context_set_default
450stream_filter_prepend
451stream_filter_append
452stream_filter_remove
453stream_socket_client
454stream_socket_server
455stream_socket_accept
456stream_socket_get_name
457stream_socket_recvfrom
458stream_socket_sendto
459stream_socket_enable_crypto
460stream_socket_shutdown
461stream_socket_pair
462stream_copy_to_stream
463stream_get_contents
464stream_supports_lock
465stream_set_write_buffer
466set_file_buffer
467stream_set_read_buffer
468stream_set_blocking
469socket_set_blocking
470stream_get_meta_data
471socket_get_status
472stream_get_line
473stream_resolve_include_path
474stream_get_wrappers
475stream_get_transports
476stream_is_local
477stream_isatty
478stream_set_chunk_size
479stream_set_timeout
480socket_set_timeout
481gettype
482get_debug_type
483settype
484intval
485floatval
486doubleval
487boolval
488strval
489is_null
490is_resource
491is_bool
492is_int
493is_integer
494is_long
495is_float
496is_double
497is_numeric
498is_string
499is_array
500is_object
501is_scalar
502is_callable
503is_iterable
504is_countable
505uniqid
506parse_url
507urlencode
508urldecode
509rawurlencode
510rawurldecode
511get_headers
512stream_bucket_make_writeable
513stream_bucket_prepend
514stream_bucket_append
515stream_bucket_new
516stream_get_filters
517stream_filter_register
518convert_uuencode
519convert_uudecode
520var_dump
521var_export
522debug_zval_dump
523serialize
524unserialize
525memory_get_usage
526memory_get_peak_usage
527memory_reset_peak_usage
528version_compare
ed48