下载
文档
参与其中
帮助
PHP 8.3.0 RC 6 available for testing
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
简介 »
« ReflectionException
PHP 手册
函数参考
变量与类型相关扩展
Change language:
English
Brazilian Portuguese
Chinese (Simplified)
French
German
Japanese
Russian
Spanish
Turkish
Other
Submit a Pull Request
Report a Bug
变量处理
简介
安装/配置
需求
安装
运行时配置
资源类型
预定义常量
变量处理函数
boolval
— 获取变量的布尔值
debug_zval_dump
— 将表示内部 zval 结构的字符串转储到输出
doubleval
— 别名 floatval
empty
— 检查变量是否为空
floatval
— 获取变量的浮点值
get_debug_type
— Gets the type name of a variable in a way that is suitable for debugging
get_defined_vars
— 返回由所有已定义变量所组成的数组
get_resource_id
— Returns an integer identifier for the given resource
get_resource_type
— 返回资源类型
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
— 验证变量的内容是否为可迭代值
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
— 输出或返回变量的可解析字符串表示
+
add a note
User Contributed Notes
There are no user contributed notes for this page.