(mongodb >=1.0.0)
MongoDB\BSON\UTCDateTime::__toString — 傳回此 UTCDateTime 的字串表示
此函式沒有參數。
傳回此 UTCDateTime 的字串表示。
範例 #1 MongoDB\BSON\UTCDateTime::__toString() 範例
<?php
$utcdatetime = new MongoDB\BSON\UTCDateTime(1416445411987);
var_dump((string) $utcdatetime);
?>
以上範例會輸出:
string(13) "1416445411987"