Downloads
Documentation
Get Involved
Help
Search docs
PHP 8.4.1 Released!
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
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
简介 »
« usort
PHP 手册
函数参考
变量与类型相关扩展
切换语言:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
类/对象的信息
简介
示例
类/对象 函数
__autoload
— 尝试加载未定义的类
class_alias
— 为类创建别名
class_exists
— 查类是否已经定义
enum_exists
— 检测是否定义对应的枚举
get_called_class
— 后期静态绑定("Late Static Binding")类的名称
get_class
— 返回对象的类名
get_class_methods
— 返回由类的方法名组成的数组
get_class_vars
— 获取类的默认属性
get_declared_classes
— 返回由已定义类的名字所组成的数组
get_declared_interfaces
— 返回一个数组包含所有已声明的接口
get_declared_traits
— 返回所有已定义的 traits 的数组
get_mangled_object_vars
— 返回将对象属性混在一起的数组
get_object_vars
— 获取指定对象的属性
get_parent_class
— 检索对象或者类的父级类名
interface_exists
— 检查接口是否已被定义
is_a
— 检查对象是否属于一个给定的类型或子类型。
is_subclass_of
— 检查对象是否继承或者实现(implement)此类
method_exists
— 检查类的方法是否存在
property_exists
— 检查对象或类是否具有该属性
trait_exists
— 检查指定的 trait 是否存在
改进此页面
了解如何改进此页面
•
提交拉取请求
•
报告一个错误
+
添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
↑
and
↓
to navigate •
Enter
to select •
Esc
to close
Press
Enter
without selection to search using Google