Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 22.x
pecl install openswoole-22.0.0
<?php Swoole\Atomic->cmpset ( int $cmp = 0, int $new = 0 )
The old value to compare with.
The new value
Compare and set the value of the atomic object. See more about Compare and set.