0

なぜ私はまだ割ることができず、割ると0になります.

  exec("snmpget -v 2c -c public $host $oid | cut -d':' -f4 | sed -e 's/^[ ]*//'", $state);

print_r($state);
$seconds=86400;
$current_state=implode($state);
print($current_state);
$div=($current_state/86400);
print($div);
4

1 に答える 1

1

implodeは 2 つのパラメーターを取ることができます。

文字列内破 (文字列 $glue 、配列 $pieces )

于 2013-02-05T20:43:44.353 に答える