Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Atomic::__constructSwoole\Atomic::set>
^Swoole\AtomicLast updated: Mon, 26 Oct 2026

Swoole\Atomic::get

(PECL swoole >= 1.9.0)

Swoole\Atomic::get — Get the current value of the atomic object.

Description

public function Swoole\Atomic::get(): int

Get the current value of the atomic object.

Parameters

This function has no parameters.

Return Values

The current value of the atomic object.


<Swoole\Atomic::__constructSwoole\Atomic::set>
^Swoole\AtomicLast updated: Mon, 26 Oct 2026