PHP 8.5.0 Alpha 2 available for testing

MongoDB\BSON\UTCDateTime::__toString

(mongodb >=1.0.0)

MongoDB\BSON\UTCDateTime::__toStringDevuelve la representación en forma de string de este UTCDateTime

Descripción

final public MongoDB\BSON\UTCDateTime::__toString(): string

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

Devuelve la representación en forma de string de este UTCDateTime.

Ejemplos

Ejemplo #1 Ejemplo con MongoDB\BSON\UTCDatetime::__toString()

<?php

$utcdatetime
= new MongoDB\BSON\UTCDateTime(1416445411987);
var_dump((string) $utcdatetime);

?>

El ejemplo anterior mostrará :

string(13) "1416445411987"

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top