Re: Date Problem with \n

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Murphy wrote:
Small issue with formatting a date. If I type in this:

echo date("g:i:s a \o\n l F j, Y");

the "n" character in the word "on" doesn't appear, but instead what I get is a new line in the source code. If I type it as:

echo date("g:i:s a \on l F j, Y");

I get the number 8 (current month) where the n is supposed to be.

Is there any way to get an "n" in there?


Use single quotes, then your \n will not be converted to a NL char

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux