PHP函数大全 · S
千寻网 PHP 函数大全,收录以字母 s 开头的 PHP 函数,共 1630 个,含用途说明、示例。 共 1,630 个函数
- Swoole\Client::close() 关闭已建立的连接。
- Swoole\Client::on() 添加由事件触发的回调函数。
- Swoole\Connection\Iterator::current() 获取当前迭代器指向的连接对象
- Swoole\Coroutine\Http\Client::close() 关闭Swoole协程HTTP客户端对象的连接,释放资源并清理状态
- Swoole\Coroutine\Http\Client::addFile() 将文件添加到HTTP请求中作为上传文件
- Swoole\Coroutine::getuid() 获取当前协程的唯一ID
- Swoole\Coroutine::create() 创建一个新的协程,并在其中执行指定的回调函数
- Swoole\Coroutine::cli_wait() 等待子进程的退出
- Swoole\Coroutine::resume() 恢复被挂起的协程,使其继续执行
- Swoole\Coroutine::suspend() 挂起当前协程的执行,并将其置于等待状态,直到被唤醒或超时
- Swoole\Connection\Iterator::rewind() 重置迭代器的指针位置到起始位置
- Swoole\Connection\Iterator::offsetUnset() 在 Swoole 连接迭代器中移除指定偏移量的连接
- Swoole\Connection\Iterator::offsetSet() 在Swoole\Connection\Iterator对象中设置指定偏移位置的值
- Swoole\Connection\Iterator::offsetExists() 检查连接迭代器中指定偏移量的连接是否存在
- Swoole\Connection\Iterator::key() 返回当前迭代器的键值
- Swoole\Connection\Iterator::valid() 判断迭代器中的当前元素是否有效
- Swoole\Coroutine::call_user_func() 在Swoole协程中调用一个普通的PHP回调函数或方法
- Swoole\Coroutine\Client::__construct() 初始化一个协程客户端对象
- Swoole\Connection\Iterator::offsetGet() 通过偏移量获取连接对象
- Swoole\Connection\Iterator::next() 迭代器中移动到下一个元素
- Swoole\Coroutine::call_user_func_array() 在协程中调用指定的函数,并传递一个数组作为参数
- Swoole\Coroutine\Client::set() 设置Swoole协程客户端的选项
- Swoole\Coroutine\Client::close() Description
- Swoole\Coroutine\Client::connect() Description
- Swoole\Coroutine\Client::getpeername() Description
- Swoole\Coroutine\Client::getsockname() Description
- Swoole\Coroutine\Client::isConnected() Description
- Swoole\Coroutine\Client::recv() Description
- Swoole\Coroutine\Client::send() Description
- Swoole\Coroutine\Client::sendfile() Description
- Swoole\Coroutine\Client::sendto() Description
- Swoole\Coroutine\Client::__destruct() Description
- Swoole\Http\Client::addFile() 将文件添加到HTTP请求中,并将其作为附件发送到服务器
- Swoole\Event::write() 向套接字写入数据。
- Swoole\Event::wait() 等待所有已注册的事件完成后再返回
- Swoole\Event::set() 更新套接字的事件回调函数。
- Swoole\Event::exit() 退出当前事件循环,并且停止所有的IO事件监听
- Swoole\Event::del() 删除一个套接字的所有事件回调函数。
- Swoole\Event::defer() 将回调函数推迟到下一个事件循环周期执行,以避免阻塞当前事件循环
- Swoole\Event::add() 在EventLoop中添加新的套接字回调函数。
- Swoole\Coroutine\MySQL::__destruct() 释放占用的资源,如数据库连接
- Swoole\Coroutine\MySQL::__construct() 创建一个Swoole协程MySQL连接对象
- Swoole\Coroutine\MySQL::setDefer() 设置延迟查询模式
- Swoole\Coroutine\MySQL::recv() 接收MySQL Server的响应结果
- Swoole\Coroutine\MySQL::query() 在Swoole协程环境中执行MySQL查询语句
- Swoole\Coroutine\MySQL::getDefer() Description
- Swoole\Coroutine\MySQL::connect() 创建一个协程MySQL连接,并返回一个协程MySQL客户端对象
- Swoole\Coroutine\MySQL::close() 关闭与MySQL服务器的连接
- Swoole\Coroutine\Http\Client::__destruct() 在协程 HTTP 客户端对象销毁时执行清理操作
- Swoole\Coroutine\Http\Client::__construct() 创建Swoole协程HTTP客户端对象,并初始化相关属性
- Swoole\Coroutine\Http\Client::setMethod() 设置HTTP请求的方法(GET、POST、PUT、DELETE等)
- Swoole\Coroutine\Http\Client::setHeaders() Description
- Swoole\Coroutine\Http\Client::setDefer() 设置Swoole协程HTTP客户端的延迟收包模式
- Swoole\Coroutine\Http\Client::setData() 设置HTTP请求的请求体数据
- Swoole\Coroutine\Http\Client::setCookies() 设置HTTP客户端的Cookie
- Swoole\Coroutine\Http\Client::set() Description
- Swoole\Coroutine\Http\Client::recv() 从服务器接收响应数据
- Swoole\Coroutine\Http\Client::post() Description
- Swoole\Coroutine\Http\Client::isConnected() 检查Swoole协程HTTP客户端是否已经连接到远程服务器
- Swoole\Coroutine\Http\Client::getDefer() 将当前的请求设置为延迟执行模式,即不立即执行请求,而是返回一个协程对象,可以通过协程对象的resume方法来恢复执行请求