PHP函数大全 · S
千寻网 PHP 函数大全,收录以字母 s 开头的 PHP 函数,共 1630 个,含用途说明、示例。 共 1,630 个函数
- Swoole\Mmap::open() 打开一个文件并创建一个内存映射区域,将文件内容映射到内存中
- Swoole\Server::listen() 监听给定的IP和端口,套接字类型
- Swoole\Server::heartbeat() 检查服务器上的所有连接
- Swoole\Server::on() 按事件名称注册回调函数。
- Swoole\Server::pause() 停止从连接接收数据
- Swoole\Server::getLastError() 获取最近错误的错误代码。
- Swoole\Server::getClientList() 获取所有已建立的联系。
- Swoole\Server::getClientInfo() 获取客户端连接的信息,包括IP地址、端口、连接时间、最近一次发送数据时间等
- Swoole\Server::finish() 在任务进程中使用,用于在任务完成时将结果发送给工作进程
- Swoole\Server::exist() 检查连接是否存在。
- Swoole\Server::defer() 在当前EventLoop结束时延迟回调函数的执行
- Swoole\Server::connection_list() 获取所有已建立的联系
- Swoole\Server::connection_info() 通过文件描述获取连接信息
- Swoole\Server::confirm() 检查连接状态。
- Swoole\Server::close() 关闭与客户端的连接
- Swoole\Server::clearTimer() 停止并销毁计时器
- Swoole\Server::bind() 将连接绑定到用户定义的用户ID
- Swoole\Server::after() 在一段时间后触发回调函数
- Swoole\Server::addProcess() 向服务器添加一个用户定义的swoole_process。
- Swoole\Server::addlistener() 向服务器添加一个新的侦听器。
- Swoole\Serialize::unpack() 将经过Swoole\Serialize::pack()函数序列化的数据进行反序列化,恢复为原始的PHP数据类型
- Swoole\Serialize::pack() 将数据序列化为二进制字符串
- Swoole\Redis\Server::start() 启动 Swoole Redis 服务器
- Swoole\Redis\Server::setHandler() 设置自定义的 Redis 命令处理器,可以通过继承 Swoole\Redis\Server 类并重写该方法来实现自定义逻辑
- Swoole\Redis\Server::format() 格式化Redis命令的静态方法
- Swoole\Process::__destruct() 在对象销毁之前执行一些清理操作
- Swoole\Process::__construct() 构造一个过程
- Swoole\Process::write() 向子进程管道写入数据
- Swoole\Process::wait() 等待子进程退出,并返回子进程的退出状态
- Swoole\Process::useQueue() 开启进程间通信的消息队列
- Swoole\Table::exist() 判断指定的键名是否存在于Swoole Table中
- Swoole\Table::destroy() 毁掉斯沃勒桌子。
- Swoole\Table::del() 删除Swoole Table中的一个元素
- Swoole\Table::decr() 在Swoole的内存表中对指定的字段进行递减操作
- Swoole\Table::current() 返回当前迭代器指向的数据行
- Swoole\Table::create() 创建一个内存表对象
- Swoole\Table::count() 获取Swoole表中的数据行数
- Swoole\Table::column() 获取表格中指定列的所有值,并返回一个包含这些值的数组
- Swoole\Server\Port::__construct() 构造服务器端口
- Swoole\Server\Port::__destruct() 销毁服务器端口
- Swoole\Server\Port::set() 设置服务器端口协议。
- Swoole\Server\Port::on() 按事件注册回调函数。
- Swoole\Server::__construct() 构建一个Swoole服务器
- Swoole\Server::tick() 在每个给定的时间间隔内重复给定的函数。
- Swoole\Server::taskWaitMulti() 同时执行多个任务
- Swoole\Server::taskwait() 同时执行多个任务
- Swoole\Server::task() 将数据发送到任务辅助进程。
- Swoole\Server::stop() 停止Swoole服务器。
- Swoole\Server::stats() 获取Swoole服务器的统计信息。
- Swoole\Server::start() 启动Swoole服务器。
- Swoole\Server::shutdown() 关闭主服务器进程,这个函数可以在工作进程中调用
- Swoole\Server::set() 设置swole服务器的运行时设置
- Swoole\Server::sendwait() 以阻塞方式向远程套接字发送数据。
- Swoole\Server::sendto() 将数据发送到远端UDP地址。
- Swoole\Server::sendMessage() 通过ID向工作进程发送消息。
- Swoole\Server::sendfile() 将文件发送到连接。
- Swoole\Server::send() 向客户端发送数据。
- Swoole\Server::resume() 开始从连接接收数据。
- Swoole\Server::reload() 重新启动所有工作进程。
- Swoole\Server::protect() 将连接设置为保护模式