Open Swoole PHPOpen Swoole PHP
HomeNewsDocsCommunitySwoole Labs
Github

Community

Join 2,000+ others and never miss out on new tips, tutorials, and more.

GithubTwitterNewsletterSlackDiscordSupport
  • Introduction
  • Get started with Open Swoole
  • Installation
  • Background Knowledge
  • Common Questions
  • Open Swoole Class Alias
  • Open Swoole Features
  • Open Swoole Event Loop API
  • Open Swoole Timer
  • Open Swoole Protocols
  • Open Swoole Tools
  • TCP/UDP Server
  • HTTP Server
  • WebSocket Server
  • MQTT Server
  • GRPC Server
  • PHP Coroutine / PHP Fiber
  • Coroutine System
  • Coroutine Channel
  • Coroutine WaitGroup
  • Coroutine Co\run
  • Coroutine TCP Server
  • Coroutine HTTP Server
  • Coroutine Library
  • Coroutine Hooks
  • Coroutine TCP/UDP Client
  • Coroutine HTTP Client
  • Coroutine HTTP2 Client
  • Coroutine Socket Client
  • Coroutine FastCGI Client
  • Coroutine Redis Client
  • Coroutine MySQL Client
  • Coroutine Postgres Client
  • Multiprocessing
  • Process
  • Process Pool
  • Table
  • Atomic
  • Lock
  • Twitter
  • Slack Group
  • Support
  1. Home
  2. Docs
  3. Modules

Swoole\Client->send

Latest version: pecl install openswoole-4.11.1

Declaration

<?php Swoole\Client->send($data, $flag = null)

Parameters

data

The data to send.

flag

Flags.

Return

Description

Send data to the remote peer with the connection.

Data can be either string or binary.

Example

Last updated on March 31, 2022
⭐ at GithubFollow TwitterSubscribe NewsletterJoin SlackJoin Discord

Open Swoole

Open Swoole is an open source production ready high performance coroutine fiber async solution for PHP, previously named Swoole.

Quick Links

  • How it works
  • Swoole Labs
  • Get Started
  • Open Swoole Frameworks
  • Open Swoole Book
  • Open Swoole Examples
  • Open Swoole Github
  • Trademark Policy

Copyright © 2017 - 2022, Transfon Ltd, all rights reserved.

Swoole® and OpenSwoole™ are trademarks Swoole Labs, Transfon Ltd, all rights reserved.

Contact Us: [email protected]