0

when I tape this on the vscode :

<?php 
$ok= new Datetime();
var_dump($ok);

i get the result:

object(DateTime)#1 (3) { ["date"]=> string(26) "2021-11-04 19:40:18.818587" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }

how I must di to just show the "date" ?

best regards.

u_mulder
  • 53,091
  • 5
  • 44
  • 59
dev13
  • 23
  • 5

0 Answers0