在时间日期戳中添加“at”

I got this:

<?php echo date("F j, Y at g:ia", strtotime(strtoupper(stripslashes($row['date'])))); ?>

I formatted everything correctly, but when I add "at" in, it shows:

April 3, 2014 am30 10:35am

I want it to show as April 3, 2014 @ 10:34am any ideas?

You need to escape those characters.

echo date("F j, Y \a\\t g:ia"

or for the @

echo date("F j, Y \@ g:ia"

Try escaping 'at' like so:

"F j, Y \a\t g:ia"

Can you try this? Escape @ by using backslash .

php echo date("F j, Y \@ g:ia", strtotime(strtoupper(stripslashes($row['date']))));

Really? Aprile? Not April?

You need to escape the a and double escape the t

<?php
echo date("F j, Y \a\\t g:ia", strtotime(strtoupper(stripslashes($row['date']))));
?>

Escaping means to use the \ character.