get_extension_funcs 


php128 apg

GETS the names of functions available in a given library.

This function is general purpose, therefore, applicable to all extensions, (libraries), of PHP, now applied to  date  library.



<?php

arr get_extension_funcs 
('str $module_name');


where,

$module_name Module name to get the extension functions

?>

  $module_name   


The module name to get the extension functions, in this case date.



  1 EXERCISE   

<table width="100%" cellspacing="5" cellpadding="5" 
border="1" align="center"><tbody>
<tr><td colspan="2">DATE FUNCTIONS&nbsp;
<?php echo '- PHP 'PHP_VERSION?></td></tr><tr>
<td>INDEX</td><td>NAME</td></tr>
<?php
$date_set 
get_extension_funcs ('date');
$cnt_date count($date_set);
for (
$i 0$i $cnt_date$i++)
{
echo 
'<tr><td>' $i '</td><td>' $date_set[$i] . '</td></tr>';
}
?>
<tr><td colspan="2">ed48</td></tr></tbody></table>


 RESULT   

DATE FUNCTIONS - PHP 7.4.xx & 8.0.xx
INDEXNAME
0strtotime
1date
2idate
3gmdate
4mktime
5gmmktime
6checkdate
7strftime
8gmstrftime
9time
10localtime
11getdate
12date_create
13date_create_immutable
14date_create_from_format
15date_create_immutable_from_format
16date_parse
17date_parse_from_format
18date_get_last_errors
19date_format
20date_modify
21date_add
22date_sub
23date_timezone_get
24date_timezone_set
25date_offset_get
26date_diff
27date_time_set
28date_date_set
29date_isodate_set
30date_timestamp_set
31date_timestamp_get
32timezone_open
33timezone_name_get
34timezone_name_from_abbr
35timezone_offset_get
36timezone_transitions_get
37timezone_location_get
38timezone_identifiers_list
39timezone_abbreviations_list
40timezone_version_get
41date_interval_create_from_date_string
42date_interval_format
43date_default_timezone_set
44date_default_timezone_get
45date_sunrise
46date_sunset
47date_sun_info
ed48