PHP code example of nelisys / ping
1. Go to this page and download the library: Download nelisys/ping library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nelisys / ping example snippets
// test-ping.php
g;
$host = new Ping('127.0.0.1');
var_dump($host->ping());
shell
$ php test-ping.php
Array
(
[127.0.0.1] => 0.14
)