codice:
$str=exec("ping -c 1 -w 1 192.168.1.216",$array);
foreach($array as $key => $value){
 echo 'riga ',$key,' = ',$value;
}