牛牛在线工具

PHP 函数大全

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

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

Swoole\Process::__construct()

构造一个过程

(PECL swoole >= 1.9.0) Swoole\Process::__construct — 构造一个过程。 说明 public Swoole\Process::__construct(callable $callback, bool $redirect_std…

Swoole\Process::write()

向子进程管道写入数据

函数名:Swoole\Process::write() 适用版本:Swoole 2.0.12+ 用法:该方法用于向子进程管道写入数据。 语法: public function write(string $data, int $length = 8192): int 参数…

Swoole\Process::wait()

等待子进程退出,并返回子进程的退出状态

函数名:Swoole\Process::wait() 适用版本:Swoole >= 4.4.0 用法:该方法用于等待子进程退出,并返回子进程的退出状态。 示例: <?php $process = new Swoole\Process(function (Swoole\Pr…

Swoole\Process::useQueue()

开启进程间通信的消息队列

函数名:Swoole\Process::useQueue() 适用版本:Swoole 4.0.0及以上版本 用法: Swoole\Process::useQueue()函数用于开启进程间通信的消息队列。可以在父进程和子进程之间传递消息。 示例: <?php $proce…

Swoole\Table::exist()

判断指定的键名是否存在于Swoole Table中

函数名称:Swoole\Table::exist() 适用版本:Swoole v4.0.0+ 函数说明:该函数用于判断指定的键名是否存在于Swoole Table中。 语法:bool Swoole\Table::exist(string $key) 参数: $key:要…

Swoole\Table::destroy()

毁掉斯沃勒桌子。

(PECL swoole >= 1.9.0) Swoole\Table::destroy — 毁掉斯沃勒桌子。 说明 public Swoole\Table::destroy(): void 参数 此函数没有参数。 返回值

Swoole\Table::del()

删除Swoole Table中的一个元素

Swoole\Table::del()函数是Swoole扩展中的一个方法,用于删除Swoole Table中的一个元素。下面是该函数的详细用法及示例: 用法: bool Swoole\Table::del(mixed $key) 参数: $key:要删除的元素的键值,可以是…

Swoole\Table::decr()

在Swoole的内存表中对指定的字段进行递减操作

函数名:Swoole\Table::decr() 适用版本:Swoole 4.2.0+ 用法: Swoole\Table::decr(string $key, string $field, int $value = 1): bool 参数: $key: 表格中的键名,必须…

Swoole\Table::current()

返回当前迭代器指向的数据行

函数名称:Swoole\Table::current() 适用版本:Swoole 4.2.0以上版本 函数描述:该方法用于返回当前迭代器指向的数据行。 用法示例: <?php $table = new Swoole\Table(1024); $table->column…

Swoole\Table::create()

创建一个内存表对象

函数名称:Swoole\Table::create() 适用版本:Swoole 4.0.0及以上版本 函数用途:Swoole\Table::create()函数用于创建一个内存表对象。 函数语法:bool Swoole\Table::create(int $table_si…

Swoole\Table::count()

获取Swoole表中的数据行数

函数名:Swoole\Table::count() 适用版本:Swoole v4.0.0或更高版本 函数描述:该函数用于获取Swoole表中的数据行数。 用法: int Swoole\Table::count(void) 参数说明: 该函数不接受任何参数。 返回值: …

Swoole\Table::column()

获取表格中指定列的所有值,并返回一个包含这些值的数组

函数名称:Swoole\Table::column() 函数描述:该函数用于获取表格中指定列的所有值,并返回一个包含这些值的数组。 适用版本:Swoole 4.4.0 或更高版本 用法: public Swoole\Table::column(string $name, …

Swoole\Server\Port::__construct()

构造服务器端口

适用版本(PECL swoole >= 1.9.0) Swoole\Server\Port::__construct — 构造服务器端口 说明 private Swoole\Server\Port::__construct() 参数 此函数没有参数。

Swoole\Server\Port::__destruct()

销毁服务器端口

适用版本(PECL swoole >= 1.9.0) Swoole\Server\Port::__destruct — 销毁服务器端口 说明 public Swoole\Server\Port::__destruct(): void 参数 此函数没有参数。

Swoole\Server\Port::set()

设置服务器端口协议。

适用版本(PECL swoole >= 1.9.0) Swoole\Server\Port::set — 设置服务器端口协议。 说明 public Swoole\Server\Port::set(array $settings): void 参数 settings 返回值

Swoole\Server\Port::on()

按事件注册回调函数。

适用版本(PECL swoole >= 1.9.0) Swoole\Server\Port::on — 按事件注册回调函数。 说明 public Swoole\Server\Port::on(string $event_name, callable $callback): …

Swoole\Server::__construct()

构建一个Swoole服务器

适用版本(PECL swoole >= 1.9.0) Swoole\Server::__construct — 构建一个Swoole服务器。 说明 public Swoole\Server::__construct( string $host, int $port = ?,…

Swoole\Server::tick()

在每个给定的时间间隔内重复给定的函数。

适用版本(PECL swoole >= 1.9.0) Swoole\Server::tick — 在每个给定的时间间隔内重复给定的函数。 说明 public Swoole\Server::tick(int $interval_ms, callable $callback):…

Swoole\Server::taskWaitMulti()

同时执行多个任务

适用版本(PECL swoole >= 1.9.0) Swoole\Server::taskWaitMulti — 同时执行多个任务。 说明 public Swoole\Server::taskWaitMulti(array $tasks, float $timeout_m…

Swoole\Server::taskwait()

同时执行多个任务

适用版本(PECL swoole >= 1.9.0) Swoole\Server::taskWaitMulti — 同时执行多个任务。 说明 public Swoole\Server::taskWaitMulti(array $tasks, float $timeout_m…

Swoole\Server::task()

将数据发送到任务辅助进程。

适用版本(PECL swoole >= 1.9.0) Swoole\Server::task — 将数据发送到任务辅助进程。 说明 public Swoole\Server::task(string $data, int $dst_worker_id = ?, callab…

Swoole\Server::stop()

停止Swoole服务器。

适用版本(PECL swoole >= 1.9.0) Swoole\Server::stop — 停止Swoole服务器。 说明 public Swoole\Server::stop(int $worker_id = ?): bool 参数 worker_id 返回值

Swoole\Server::stats()

获取Swoole服务器的统计信息。

适用版本(PECL swoole >= 1.9.0) Swoole\Server::stats — 获取Swoole服务器的统计信息。 说明 public Swoole\Server::stats(): array 参数 此函数没有参数。 返回值

Swoole\Server::start()

启动Swoole服务器。

适用版本(PECL swoole >= 1.9.0) Swoole\Server::start — 启动Swoole服务器。 说明 public Swoole\Server::start(): void 参数 此函数没有参数。 返回值

上一页第 312 / 370 页下一页