 |
 |
 |
 |
Warning: include(../levoe_menu.php) [ function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/get-defined-functions.html on line 46
Warning: include() [ function.include]: Failed opening '../levoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/get-defined-functions.html on line 46
|
 |
 |
 |
 | |
|  |
(PHP 4 >= 4.0.4)
get_defined_functions - возвращает массив из всех определённых функций.
Описаниеarray get_defined_functions (void)
Эта функция возвращает многомерный массив, содержащий список всех
определённых функций, встроенных (внутренних) и пользовательских. Внутренние функции будут доступны через
$arr["internal"], а пользовательские - через $arr["user"] (см. пример ниже).
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
)
) | См. также get_defined_vars() и
get_defined_constants(). |  | |
|
 |
 |
 |
 |
Warning: include(../pravoe_menu.php) [ function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/get-defined-functions.html on line 169
Warning: include() [ function.include]: Failed opening '../pravoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/get-defined-functions.html on line 169
|
 |
 |
 |
 | |