Re: How to use "\n"
| From: | Mukul Sabharwal | Date: | Sat, 21 Oct 2000 14:59:13 +0000 |
| Subject: | Re: How to use "\n" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-21557@lists.php.net to get a copy of this message | ||
if you've done
echo ('Hello World\n');
then it will print \n becuase single quotes make it
literal... hence printing echo ('Hello $user\n');
would Hello $user\n and not Hello Todd (a newline)
so use echo ("hello world\n");
though still to print a newline to the browser, <BR>
will be required!
--- Todd Cary <todd@aristesoftware.com> wrote: > I am
running under WIN NT and if I execute
> echo('Hello World\n"), I get
> "Hello World\n". Do I need to have a "define" (e.g.
> define("\n",
> "<BR>") )?
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> todd@aristesoftware.com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
=====
To Find Out More About Me : http://mukul.tsx.org/
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/