Is it possible to add text between date and time in PHP ?
<?php
echo date();
?>
This will create
(07-06-2014 00:00)
But i want (07-06-2014 at 00:00 hours).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Derived from your example which you provided a bit late
be sure to use the exact syntax given! Using double quotes
"instead of single ones'will result in you getting a tab for\t, you’d than need to use\\a\\tfor proper syntax as in the example below:This is due to how php quoting works and has nothing to do with date formatting, things in
'don’t get escaped while those in"do, so if you use"be sure to use double backslashes\\.If it’s a datetime object
if you already have it as a string