来源:
php输出页面所有变量print_r(get_defined_vars());
此函数返回一个包含所有已定义变量列表的多维数组,这些变量包括环境变量、服务器变量和用户定义的变量。
获取所有已经定义的函数get_defined_functions()
get_loaded_extensions()
get_extension_funcs()
该函数返回指定模块所有可用的函数。传入的参数(模块名称)必须是小写
获取关联数组的名字所有的常量和他们的值 ? (PHP 4 >= 4.1.0, PHP 5)get_defined_constants()
get_declared_classes (PHP 4, PHP 5) ? 获取由已定义类的名字所组成的数组
get_declared_classes()
get_included_files()(或者get_require_files) (PHP 4, PHP 5) ? 获取由已定义类的名字所组成的数组
立即学习“PHP免费学习笔记(深入)”;
get_included_files()
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号