Swoole Functions
PHP Manual

swoole_cpu_num

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

swoole_cpu_numGet the number of CPU

Description

int swoole_cpu_num ( void )

Parameters

This function has no parameters.

Return Values

The number of CPU.


Swoole Functions
PHP Manual