i want to store present time and date along with pre-defined text in database,
like
"WELCOME 2019-12-10 16:06:36"
now it just storing date time only "2019-12-10 16:06:36"
i was tried but it showing error
"Object of class DateTime could not be converted to string"
my code
$user['hello'] = "welcome".new \DateTime('NOW');
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire