list($micro, $sec) = explode(' ', microtime()); $output = $sec . '-' . substr($micro, 2, 3); echo $output;