|
Proto |
Source -> Router -> Destination |
State |
|
0) {
foreach($states as $line) {
$state_counter++;
if($state_counter > 1000)
break;
$line_split = preg_split("/\s+/", $line);
$state = array_pop($line_split);
$type = array_shift($line_split);
$proto = array_shift($line_split);
$info = implode(" ", $line_split);
$towrite = <<
{$proto} |
{$info} |
{$state} |
EOD;
print $towrite;
}
} else {
print 'No states were found. | ';
}
?>
|
|