- var_dump: documentation ( source)
- date: documentation ( source)
<?php
$date = date('Ymd');
var_dump($date);
echo 'Datum OK: ' . $date . "\n";
$date = new \DateTime();
var_dump($date);
//echo $date; //Catchable fatal error: Object of class DateTime could not be converted to string in /in/DrHV2 on line 9