php8.5
Home/ Manual/ connection / iterator/ Swoole\Connection\Iterator::offsetExists

Swoole\Connection\Iterator::offsetExists

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Check if offset exists.

Description

Swoole\Connection\Iterator::offsetExists(int $index): bool

Check if offset exists.

Parameters

index

The offset being checked.

Return Values

Returns TRUE if the offset exists, otherwise FALSE.

Source: reference/swoole/swoole/connection/iterator/offsetexists.xml · from the official PHP manual (php/doc-en)