OpenSwoole\Core\Coroutine\Client\MysqliConfig->withPort

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.11.1

Declaration

<?php OpenSwoole\Core\Coroutine\Client\MysqliConfig->withPort()

Parameters

port

The port of MySQL.

Return

Description

Set the port of MySQL.

Last updated on February 28, 2026