牛牛在线工具

PHP 函数大全

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

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

Memcached::getDelayedByKey()

在后台异步获取指定键的值,通过传递键和回调函数来实现

函数名称:Memcached::getDelayedByKey() 适用版本:PHP 5 >= 5.3.0, PHP 7, PECL memcached >= 0.1.0 函数说明:Memcached::getDelayedByKey() 方法用于在后台异步获取指定键的值,通…

Memcached::getDelayed()

从Memcached服务器异步获取多个键对应的值

函数:Memcached::getDelayed() 适用版本:PHP 5 >= 5.3.0, PHP 7 用法:Memcached::getDelayed() 函数用于从Memcached服务器异步获取多个键对应的值。与 Memcached::get() 不同的是,getD…

Memcached::getByKey()

从Memcached服务器中按照指定的键和服务器键获取一个值

函数名称:Memcached::getByKey() 适用版本:PHP 5 >= 5.3.0, PHP 7 函数描述:该函数用于从Memcached服务器中按照指定的键和服务器键获取一个值。 用法: mixed Memcached::getByKey ( string $…

Memcached::getAllKeys()

获取Memcached服务器中存储的所有键

函数名:Memcached::getAllKeys() 适用版本:Memcached扩展版本2.0.0及以上 用法:Memcached::getAllKeys()函数用于获取Memcached服务器中存储的所有键。 示例: // 创建一个Memcached对象 $memc…

MongoDB\BSON\Binary::getType()

获取MongoDB\BSON\Binary对象的类型

函数名:MongoDB\BSON\Binary::getType() 适用版本:PHP 7, PHP 8 用法:该函数用于获取MongoDB\BSON\Binary对象的类型。 语法:public function getType(): string 返回值:返回一个字符…

MongoDB\BSON\Binary::getData()

获取MongoDB\BSON\Binary对象中的二进制数据

函数名称:MongoDB\BSON\Binary::getData() 函数描述:该函数用于获取MongoDB\BSON\Binary对象中的二进制数据。 适用版本:MongoDB\BSON\Binary类在MongoDB扩展版本1.0.0及以上可用。 用法: publi…

money_format()

将数字格式化为货币字符串

函数名称:money_format() 函数描述:money_format() 函数将数字格式化为货币字符串。 用法: money_format(string $format, float $number): string 参数: $format:必需,指定货币格式的字符…

mktime()

返回一个日期的 Unix 时间戳

函数名:mktime() 适用版本:所有PHP版本 用法:mktime() 函数返回一个日期的 Unix 时间戳。Unix 时间戳是一个表示从1970年1月1日 00:00:00开始经过的秒数。 语法:mktime(hour, minute, second, month, …

mkdir()

创建一个新目录

函数名:mkdir() 适用版本:PHP 4, PHP 5, PHP 7 用法:mkdir() 函数用于创建一个新目录。 语法:bool mkdir ( string $pathname [, int $mode = 0777 [, bool $recursive = fa…

min()

返回一组数值中的最小值

PHP的min()函数用于返回一组数值中的最小值。 用法: min(value1, value2, value3, ...) 参数: value1, value2, value3, ...:要比较的数值,可以是任意数量的参数。 返回值: 返回最小的数值。 示例: …

mime_content_type()

返回指定文件的 MIME 类型

函数名:mime_content_type() 适用版本:PHP 4 >= 4.3.0, PHP 5, PHP 7 函数说明:mime_content_type() 函数用于返回指定文件的 MIME 类型。 语法:mime_content_type ( string $fi…

microtime()

返回当前 Unix 时间戳和微秒数的字符串表示

函数名称:microtime() 函数说明:microtime()函数返回当前 Unix 时间戳和微秒数的字符串表示。 适用版本:PHP 4, PHP 5, PHP 7 语法:microtime(bool $get_as_float = false) : string|fl…

mhash_keygen_s2k()

使用用户提供的密码,根据给定算法生成密钥。

函数名:mhash_keygen_s2k() 适用版本:PHP 4 >= 4.0.6, PHP 5, PHP 7 用法:mhash_keygen_s2k(string $hash, string $password, string $salt, int $bytes) 参数…

mhash_get_hash_name()

获取指定哈希算法的名称

函数名:mhash_get_hash_name() 函数描述:mhash_get_hash_name() 函数用于获取指定哈希算法的名称。 用法: string mhash_get_hash_name ( int $hash ) 参数: $hash:必需,表示哈希算法的…

mhash_get_block_size()

获取指定哈希算法的块大小(以字节为单位)

函数名:mhash_get_block_size() 适用版本:PHP 4 >= 4.0.4, PHP 5, PHP 7 函数描述:该函数用于获取指定哈希算法的块大小(以字节为单位)。 用法: mhash_get_block_size ( int $hash , int …

mhash_count()

返回当前系统支持的哈希算法的数量

函数名:mhash_count() 适用版本:PHP 4 >= 4.0.4, PHP 5, PHP 7 用法:mhash_count ( void ) : int 说明:mhash_count() 函数返回当前系统支持的哈希算法的数量。 参数:此函数不接受任何参数。 返…

mhash()

计算给定的数据的哈希值

函数名:mhash() 适用版本:PHP 4 >= 4.0.4, PHP 5, PHP 7 函数描述:mhash() 函数计算给定的数据的哈希值。它支持多种哈希算法,如 MD5、SHA-1、SHA-256 等。 用法: mhash(int $hash, string $dat…

method_exists()

检查一个对象或类是否具有指定的方法

函数名:method_exists() 适用版本:所有版本 用法:method_exists()函数用于检查一个对象或类是否具有指定的方法。 语法:bool method_exists ( mixed $object , string $method_name ) 参数:…

metaphone()

计算给定字符串的 metaphone 键

函数名: metaphone() 适用版本: PHP 4, PHP 5, PHP 7 函数描述: metaphone() 函数计算给定字符串的 metaphone 键 用法: metaphone ( string $str [, int $phonemes = 0 ] )…

MessageFormatter::setPattern()

设置消息格式化器的模式

函数名:MessageFormatter::setPattern() 适用版本:PHP 5 >= 5.3.0, PHP 7 用法:MessageFormatter::setPattern() 函数用于设置消息格式化器的模式。消息格式化器是用于将消息模式与一组参数结合起来生成最…

MessageFormatter::parseMessage()

将一个格式化的消息解析为具体的值,并返回解析后的结果

函数名称:MessageFormatter::parseMessage() 适用版本:PHP 5 >= 5.3.0, PHP 7, PHP 8 函数描述:MessageFormatter::parseMessage() 函数将一个格式化的消息解析为具体的值,并返回解析后的结果…

MessageFormatter::parse()

将格式化的消息解析为消息的参数数组

PHP函数:MessageFormatter::parse() 适用版本:PHP 5 >= 5.3.0, PHP 7 用法:MessageFormatter::parse() 函数将格式化的消息解析为消息的参数数组。它使用 ICU MessageFormat 模式来解析消息,…

MessageFormatter::getPattern()

获取 MessageFormatter 对象的消息模式

函数名称:MessageFormatter::getPattern() 适用版本:PHP 5 >= 5.3.0, PHP 7, PHP 8 函数说明:MessageFormatter::getPattern() 函数用于获取 MessageFormatter 对象的消息模式。…

MessageFormatter::getLocale()

获取当前MessageFormatter对象的区域设置

函数名称:MessageFormatter::getLocale() 函数描述:该函数用于获取当前MessageFormatter对象的区域设置。 适用版本:PHP 5 >= 5.3.0, PHP 7, PHP 8 用法: public MessageFormatter:…

上一页第 160 / 370 页下一页