What are some functions or methods in PHP that can be used to send a ping?

To send a ping in PHP, you can use the `ping` function from the `Net_Ping` package which allows you to send ICMP echo requests to a specified host and measure the round-trip time. This can be useful for checking the availability and latency of a remote server.

// Include the Net_Ping package
require_once 'Net/Ping.php';

// Create a new Net_Ping object
$ping = new Net_Ping();

// Send a ping to a specified host
$response = $ping->ping('example.com');

// Check if the ping was successful
if($response !== false) {
    echo 'Ping successful! Round-trip time: ' . $response . ' ms';
} else {
    echo 'Ping failed!';
}