Is it possible to add word wrap in php date()
Try this:
echo nl2br(date("d-m-y\nH:i:s", $time));
Note that I used double quotes instead of single quotes. This is because \n won't work with single quotes. For your reference: https://www.php.net/manual/en/function.nl2br.php What is the difference between single-quoted and double-quoted strings in PHP?