How can server load be displayed as a number in PHP?

To display the server load as a number in PHP, you can use the `sys_getloadavg()` function which returns an array containing the 1, 5, and 15-minute load averages. You can then extract the desired load average value from the array to display it as a number.

$loadAvg = sys_getloadavg();
$serverLoad = $loadAvg[0]; // Extracting the 1-minute load average
echo "Server Load: " . $serverLoad;