Saturday, 15 March 2014

Division from Array after Implode - PHP -



Division from Array after Implode - PHP -

how come still can no split , if 0.

exec("snmpget -v 2c -c public $host $oid | cutting -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 can take 2 parameters.

string implode ( string $glue , array $pieces )

php arrays

No comments:

Post a Comment