php输出页面所有变量

WBOY
Release: 2016-06-23 13:32:01
Original
1971 people have browsed it

来源:

php输出页面所有变量
print_r(get_defined_vars());
Copy after login

此函数返回一个包含所有已定义变量列表的多维数组,这些变量包括环境变量、服务器变量和用户定义的变量。

获取所有已经定义的函数
get_defined_functions()
Copy after login
获取所有可用的模块
get_loaded_extensions()
Copy after login
获取指定模块的可用函数
get_extension_funcs()
Copy after login

该函数返回指定模块所有可用的函数。传入的参数(模块名称)必须是小写

获取关联数组的名字所有的常量和他们的值 ? (PHP 4 >= 4.1.0, PHP 5)
get_defined_constants()
Copy after login

get_declared_classes (PHP 4, PHP 5) ? 获取由已定义类的名字所组成的数组

get_declared_classes()
Copy after login

get_included_files()(或者get_require_files) (PHP 4, PHP 5) ? 获取由已定义类的名字所组成的数组

get_included_files()
Copy after login


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!