array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'mongodb-bson-timestamp.construct.php', 1 => 'MongoDB\\BSON\\Timestamp::__construct', ), 'up' => array ( 0 => 'class.mongodb-bson-timestamp.php', 1 => 'MongoDB\\BSON\\Timestamp', ), 'prev' => array ( 0 => 'class.mongodb-bson-timestamp.php', 1 => 'MongoDB\\BSON\\Timestamp', ), 'next' => array ( 0 => 'mongodb-bson-timestamp.getincrement.php', 1 => 'MongoDB\\BSON\\Timestamp::getIncrement', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/bson/timestamp/construct.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(mongodb >=1.0.0)
MongoDB\BSON\Timestamp::__construct — Construct a new Timestamp
Örnek 1 MongoDB\BSON\Timestamp::__construct() example
<?php
$timestamp = new MongoDB\BSON\Timestamp(1234, 5678);
?>
Yukarıdaki örneğin çıktısı:
object(MongoDB\BSON\Timestamp)#1 (2) { ["increment"]=> int(1234) ["timestamp"]=> int(5678) }