Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么我仍然无法除法,如果我这样做了,我得到一个 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);
implode可以采用两个参数。
字符串内爆(字符串 $glue ,数组 $pieces )