可用的处理函数
- boolval — 获取变量的布尔值
- debug_zval_dump — Dumps a string representation of an internal zval structure to output
- doubleval — floatval 的别名
- empty — 检查一个变量是否为空
- floatval — 获取变量的浮点值
- get_defined_vars — 返回由所有已定义变量所组成的数组
- get_resource_id — Returns an integer identifier for the given resource
- get_resource_type — 返回资源(resource)类型
- gettype — 获取变量的类型
- intval — 获取变量的整数值
- is_array — 检测变量是否是数组
- is_bool — 检测变量是否是布尔值
- is_callable — 检测参数是否为合法的可调用结构
- is_countable — Verify that the contents of a variable is a countable value
- is_double — is_float 的别名
- is_float — 检测变量是否是浮点型
- is_int — 检测变量是否是整数
- is_integer — is_int 的别名
- is_iterable — Verify that the contents of a variable is an iterable value
- is_long — is_int 的别名
- is_null — 检测变量是否为 null
- is_numeric — 检测变量是否为数字或数字字符串
- is_object — 检测变量是否是一个对象
- is_real — is_float 的别名
- is_resource — 检测变量是否为资源类型
- is_scalar — 检测变量是否是一个标量
- is_string — 检测变量是否是字符串
- isset — 检测变量是否已设置并且非 null
- print_r — 以易于理解的格式打印变量。
- serialize — 产生一个可存储的值的表示
- settype — 设置变量的类型
- strval — 获取变量的字符串值
- unserialize — 从已存储的表示中创建 PHP 的值
- unset — 释放给定的变量
- var_dump — 打印变量的相关信息
- var_export — 输出或返回一个变量的字符串表示
预定义变量
- 超全局变量 — 超全局变量是在全部作用域中始终可用的内置变量
- $GLOBALS — 引用全局作用域中可用的全部变量
- $_SERVER — 服务器和执行环境信息
- $_GET — HTTP GET 变量
- $_POST — HTTP POST 变量
- $_FILES — HTTP 文件上传变量
- $_REQUEST — HTTP Request 变量
- $_SESSION — Session 变量
- $_ENV — 环境变量
- $_COOKIE — HTTP Cookies
- $php_errormsg — 前一个错误信息
- $http_response_header — HTTP 响应头
- $argc — 传递给脚本的参数数目
- $argv — 传递给脚本的参数数组