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