(PHP 4 >= 4.0.4, PHP 5, PHP 7)
get_defined_functions — ���������Ѷ��庯��������
$exclude_disabled = FALSE
] ) : array��ȡ�����Ѷ��庯�������顣
exclude_disabled���õĺ����Ƿ�Ӧ���ڷ��ص��������ų���
�������飬�����������Ѷ���ĺ�������������(internal) ���û�����ĺ����� ��ͨ��$arr["internal"]������ϵͳ���ú����� ͨ��$arr["user"]�������û��Զ��庯�� (�μ�ʾ��)��
| �汾 | ˵�� |
|---|---|
| PHP 7.0.15, PHP 7.1.1 |
���� exclude_disabled ������
|
Example #1 get_defined_functions() ����
<?php
function myrow($id, $data)
{
return "<tr><th>$id</th><td>$data</td></tr>\n";
}
$arr = get_defined_functions();
print_r($arr);
?>
�������̵���������ڣ�
Array
(
[internal] => Array
(
[0] => zend_version
[1] => func_num_args
[2] => func_get_arg
[3] => func_get_args
[4] => strlen
[5] => strcmp
[6] => strncmp
...
[750] => bcscale
[751] => bccomp
)
[user] => Array
(
[0] => myrow
)
)