牛牛在线工具

PHP 函数大全

收录 8868 个 PHP 函数,含用途说明与用法示例。

本地收录 8868 条,找到 8868 条记录

ReflectionProperty::isDefault()

检查属性是否为默认值

ReflectionProperty::isDefault()方法用于检查属性是否为默认值。 用法: bool ReflectionProperty::isDefault ( void ) 参数: 该方法没有参数。 返回值: 如果属性是默认值,则返回true;否则返回fa…

ReflectionProperty::hasType()

检查属性是否有类型声明

函数名称:ReflectionProperty::hasType() 适用版本:PHP 7.4.0 及以上版本 函数说明:ReflectionProperty::hasType() 方法用于检查属性是否有类型声明。 用法示例: class MyClass { public…

ReflectionProperty::hasDefaultValue()

检查属性是否具有默认值

函数名:ReflectionProperty::hasDefaultValue() 适用版本:PHP 5 >= 5.1.0, PHP 7 用法:ReflectionProperty::hasDefaultValue() 方法用于检查属性是否具有默认值。如果属性具有默认值,则返…

ReflectionProperty::getValue()

获取对象的属性值

ReflectionProperty::getValue()函数用于获取对象的属性值。 函数原型: public ReflectionProperty::getValue ( object $object ) : mixed 参数说明: $object:要获取属性值的对象。…

ReflectionProperty::getType()

获取类属性的类型

函数名称:ReflectionProperty::getType() 适用版本:PHP 7.4+ 函数说明:ReflectionProperty::getType() 方法用于获取类属性的类型。 用法示例: class MyClass { public int $myPr…

ReflectionProperty::getName()

获取反射属性的名称

ReflectionProperty::getName()是一个PHP函数,用于获取反射属性的名称。 使用方法如下: public string ReflectionProperty::getName ( void ) 参数说明: 无需传入任何参数。 返回值: 返回反…

ReflectionProperty::getModifiers()

获取属性的修饰符

函数名:ReflectionProperty::getModifiers() 适用版本:所有 PHP 版本 用法:该方法用于获取属性的修饰符。修饰符表示属性的访问级别和其他特性。 语法:int ReflectionProperty::getModifiers( void )…

ReflectionProperty::getDocComment()

获取类属性的文档注释

函数名称:ReflectionProperty::getDocComment() 适用版本:PHP 5 >= 5.1.0, PHP 7 函数说明:ReflectionProperty::getDocComment() 方法用于获取类属性的文档注释。 语法:public st…

ReflectionProperty::getDefaultValue()

获取属性的默认值

函数名称:ReflectionProperty::getDefaultValue() 函数描述:该方法用于获取属性的默认值。 适用版本:该函数在PHP 5.4.0及更高版本中可用。 语法:public ReflectionProperty::getDefaultValue(…

ReflectionProperty::getDeclaringClass()

获取声明该属性的类的反射类

函数名称:ReflectionProperty::getDeclaringClass() 适用版本:PHP 5, PHP 7 函数描述: ReflectionProperty::getDeclaringClass() 函数用于获取声明该属性的类的反射类。 用法: $ref…

ReflectionProperty::getAttributes()

获取属性的属性列表

函数名称:ReflectionProperty::getAttributes() 适用版本:PHP 8.0.0 及以上版本 函数用法: ReflectionProperty::getAttributes() 方法用于获取属性的属性列表。它返回一个包含 ReflectionAt…

ReflectionProperty::export()

导出一个类的属性

ReflectionProperty::export()函数用于导出一个类的属性。 用法: ReflectionProperty::export(mixed $class, string $name [, bool $return = false]) : string|voi…

ReflectionParameter::__toString()

返回参数的字符串表示形式,包括参数的类型和名称

函数名称:ReflectionParameter::__toString() 适用版本:PHP 5 >= 5.1.0, PHP 7 函数描述:返回参数的字符串表示形式,包括参数的类型和名称。 用法: public ReflectionParameter::__toStri…

ReflectionProperty::isPublic()

检查类的属性是否为公共属性(public)

ReflectionProperty::isPublic()是一个PHP函数,用于检查类的属性是否为公共属性(public)。 用法: bool ReflectionProperty::isPublic ( void ) 该函数不接受任何参数。 参数说明: 无参数。 返…

ReflectionParameter::__construct()

创建一个 ReflectionParameter 对象,用于获取函数或方法的参数信息

函数名:ReflectionParameter::__construct() 适用版本:PHP 5 >= 5.1.0, PHP 7 用法:ReflectionParameter::__construct() 方法用于创建一个 ReflectionParameter 对象,用于…

ReflectionParameter::__clone()

创建ReflectionParameter对象的副本

ReflectionParameter::__clone()函数用于创建ReflectionParameter对象的副本。 用法: public ReflectionParameter ReflectionParameter::__clone ( void ) 参数: 此函…

ReflectionParameter::isVariadic()

检查参数是否为可变参数

函数名:ReflectionParameter::isVariadic() 适用版本:PHP 5 >= 5.6.0, PHP 7 函数描述:该函数用于检查参数是否为可变参数。 用法: bool ReflectionParameter::isVariadic ( void …

ReflectionParameter::isPassedByReference()

检查函数或方法参数是否按引用传递

函数名称:ReflectionParameter::isPassedByReference() 适用版本:PHP 5 >= 5.4.0, PHP 7 用法:ReflectionParameter::isPassedByReference() 方法用于检查函数或方法参数是否按引…

ResourceBundle::create()

访问特定于语言环境的资源包

函数名称:ResourceBundle::create() 适用版本:PHP 5 >= 5.3.2, PHP 7, PHP 8 函数描述:创建一个ResourceBundle对象,用于访问特定于语言环境的资源包。 用法: ResourceBundle::create(st…

ResourceBundle::count()

获取 Resource Bundle 中的条目数

函数:ResourceBundle::count() 适用版本:PHP 5 >= 5.3.2, PHP 7 用法:ResourceBundle::count() 函数用于获取 Resource Bundle 中的条目数。 语法:int ResourceBundle::cou…

reset()

将数组的内部指针指向第一个元素,并返回该元素的值

函数名称:reset() 适用版本:PHP 4, PHP 5, PHP 7 函数描述:reset() 函数将数组的内部指针指向第一个元素,并返回该元素的值。 语法:reset(array $array): mixed 参数: $array: 必需,要重置指针的数组。 …

rename()

重命名或移动文件或目录

函数名称:rename() 适用版本:所有PHP版本 函数描述:rename()函数用于重命名或移动文件或目录。 语法:bool rename ( string $oldname , string $newname [, resource $context ] ) 参数:…

register_tick_function()

注册一个用户定义的函数来在每个 tick(时钟周期)发生时执行

函数名:register_tick_function() 适用版本:PHP 4 >= 4.0.3, PHP 5, PHP 7 函数描述:register_tick_function() 函数用于注册一个用户定义的函数来在每个 tick(时钟周期)发生时执行。 语法:bool…

register_shutdown_function()

在脚本执行完毕或者因致命错误而终止时注册一个回调函数

函数名:register_shutdown_function() 适用版本:所有PHP版本 用法:register_shutdown_function() 函数用于在脚本执行完毕或者因致命错误而终止时注册一个回调函数。这个回调函数将在脚本结束时被调用,无论是正常结束还是意外终…

上一页第 242 / 370 页下一页