牛牛在线工具

PHP 函数大全

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

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

ReflectionClass::getAttributes()

获取类的属性

ReflectionClass::getAttributes()函数用于获取类的属性。 用法: ReflectionAttribute[] ReflectionClass::getAttributes( string $name = NULL, int $flags = 0 …

ReflectionClass::export()

导出一个类的反射信息

函数名称:ReflectionClass::export() 适用版本:5.0.0 及以上版本 函数描述:ReflectionClass::export() 方法用于导出一个类的反射信息。 用法: string ReflectionClass::export( [stri…

ReflectionAttribute::__construct()

创建一个 ReflectionAttribute 对象

函数名称:ReflectionAttribute::__construct() 函数描述:ReflectionAttribute::__construct() 是 ReflectionAttribute 类的构造函数,用于创建一个 ReflectionAttribute 对象。…

ReflectionAttribute::newInstance()

创建一个新的 ReflectionAttribute 对象,并传递参数作为构造函数的参数

函数名称:ReflectionAttribute::newInstance() 适用版本:PHP 8.0.0 及以上 用法:ReflectionAttribute::newInstance() 函数用于创建一个新的 ReflectionAttribute 对象,并传递参数作为…

ReflectionAttribute::isRepeated()

判断当前反射属性是否为重复属性(Repeated Attribute)

ReflectionAttribute::isRepeated()是PHP的一个方法,用于判断当前反射属性是否为重复属性(Repeated Attribute)。重复属性是指在同一个位置多次使用的属性。 用法: public ReflectionAttribute::isRe…

ReflectionAttribute::getTarget()

获取ReflectionAttribute对象所关联的目标

ReflectionAttribute::getTarget()函数是在PHP 8.0.0版本中引入的。它用于获取ReflectionAttribute对象所关联的目标。该函数的用法如下: public ReflectionAttribute::getTarget(): int…

ReflectionAttribute::getName()

获取反射属性的名称

函数名称:ReflectionAttribute::getName() 函数描述:该函数用于获取反射属性的名称。 适用版本:PHP 8.0.0 及以上版本。 用法: public function getName(): string|false 参数:无参数。 返回值…

ReflectionAttribute::getArguments()

获取属性的参数值

函数名称:ReflectionAttribute::getArguments() 适用版本:PHP 8.0.0 及以上版本 函数说明:ReflectionAttribute::getArguments() 方法用于获取属性的参数值。当属性具有参数时,可以使用该方法获取这些参数…

Reflection::getModifierNames()

获取类或方法的修饰符名称的方法

Reflection::getModifierNames()是一个用于获取类或方法的修饰符名称的方法。它返回一个包含修饰符名称的数组。 用法示例: class MyClass { public function myMethod() { // 方法实现 } } $refle…

Reflection::export()

将Reflection对象导出为字符串

函数名称:Reflection::export() 适用版本:PHP 5 >= 5.0.1, PHP 7 函数描述:Reflection::export()函数将Reflection对象导出为字符串。 用法: Reflection::export(mixed $argum…

RecursiveTreeIterator::__construct()

构造一个RecursiveTreeIterator对象,用于遍历递归目录结构并以树状形式进行展示

函数名称:RecursiveTreeIterator::__construct() 适用版本:PHP 5 >= 5.3.0, PHP 7 函数描述:该方法用于构造一个RecursiveTreeIterator对象,用于遍历递归目录结构并以树状形式进行展示。 用法: Rec…

RecursiveTreeIterator::valid()

判断当前迭代位置是否有效

函数名称:RecursiveTreeIterator::valid() 适用版本:PHP 5 >= 5.3.0, PHP 7 函数描述:该函数用于判断当前迭代位置是否有效。 用法: public RecursiveTreeIterator::valid ( void ) …

RecursiveTreeIterator::setPrefixPart()

设置递归树迭代器的前缀部分

函数名称:RecursiveTreeIterator::setPrefixPart() 函数描述:设置递归树迭代器的前缀部分。 用法: public RecursiveTreeIterator::setPrefixPart ( int $part , string $val…

RecursiveTreeIterator::setPostfix()

设置迭代器在每个节点后面添加的字符串后缀

函数名称:RecursiveTreeIterator::setPostfix() 适用版本:PHP 5 >= 5.3.0, PHP 7 函数描述:设置迭代器在每个节点后面添加的字符串后缀。 用法: void RecursiveTreeIterator::setPostfi…

RecursiveTreeIterator::rewind()

将迭代器重置到起始位置

函数名:RecursiveTreeIterator::rewind() 适用版本:PHP 5 >= 5.3.0, PHP 7 函数描述:该函数用于将迭代器重置到起始位置。 用法: void RecursiveTreeIterator::rewind ( void ) 参…

RecursiveTreeIterator::nextElement()

将迭代器的指针移动到下一个元素

函数名称:RecursiveTreeIterator::nextElement() 函数适用版本:PHP 7.4.0 或更高版本 函数用法:RecursiveTreeIterator::nextElement() 方法用于将迭代器的指针移动到下一个元素。它返回一个布尔值,表示…

RecursiveTreeIterator::next()

将迭代器指针移向下一个元素

函数名称:RecursiveTreeIterator::next() 适用版本:PHP 5 >= 5.3.0, PHP 7 函数说明:RecursiveTreeIterator::next() 方法用于将迭代器指针移向下一个元素。 用法示例: // 创建一个多维数组 $d…

RecursiveTreeIterator::key()

获取当前迭代器的键名

函数名:RecursiveTreeIterator::key() 适用版本:PHP 5 >= 5.3.0, PHP 7 函数描述:该函数用于获取当前迭代器的键名。 用法: public RecursiveTreeIterator::key ( void ) : strin…

RecursiveTreeIterator::getPrefix()

获取当前节点的前缀字符串

函数名称:RecursiveTreeIterator::getPrefix() 适用版本:PHP 5 >= 5.3.0, PHP 7 函数说明:RecursiveTreeIterator::getPrefix()方法用于获取当前节点的前缀字符串。该前缀字符串用于表示节点在树状…

RecursiveTreeIterator::getPostfix()

获取当前节点的后缀字符串

函数名:RecursiveTreeIterator::getPostfix() 适用版本:PHP 5 >= 5.3.0, PHP 7 函数说明:RecursiveTreeIterator::getPostfix() 函数用于获取当前节点的后缀字符串。 用法: string…

RecursiveTreeIterator::getEntry()

返回当前迭代器指向的节点的信息

函数名称:RecursiveTreeIterator::getEntry() 适用版本:PHP 5 >= 5.3.0, PHP 7 函数说明:该函数返回当前迭代器指向的节点的信息。 用法: public RecursiveTreeIterator::getEntry():…

RecursiveTreeIterator::endIteration()

结束迭代器的当前迭代,使其返回到根节点

函数名:RecursiveTreeIterator::endIteration() 适用版本:PHP 5 >= 5.3.0, PHP 7 函数描述:结束迭代器的当前迭代,使其返回到根节点。 用法: RecursiveTreeIterator::endIteration()…

ReflectionClass::getEndLine()

获取类的结束行号

ReflectionClass::getEndLine()函数用于获取类的结束行号。 用法: int ReflectionClass::getEndLine( void ) 示例: <?php class MyClass { public function myMetho…

ReflectionClass::isFinal()

判断一个类是否被声明为 final(不能被继承)

函数名称:ReflectionClass::isFinal() 适用版本:PHP 5 >= 5.0.0, PHP 7 函数说明:ReflectionClass::isFinal() 方法用于判断一个类是否被声明为 final(不能被继承)。 用法示例: class MyC…

上一页第 233 / 370 页下一页