-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you "View Source" in IE, you'll see it printed in the expected way.
The browser, though, will not show it as you expect it.  This is because
the browser needs a <br> tag for a newline and will not read a \n as a <br>.

So, use <br> instead of \n.


Viviane Hu wrote: | Hi, | | Je try to use PHP. | Je wrote to this code | <?php | echo "hello \n"; | echo "viviane \n"; | ?> | I expect a print out like : | hello | viviane | | but the print out (IE) is "hello viviane" | | Could you help please | | thinks. | Viviane | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAFSFOIcIs3CP5DxwRAqaTAJ4wHGXKgKiC8oTmZZXydFDQJMz5DQCfU4E8
7Ymsr37Df0hlIqR0UgPq0pI=
=Z6+n
-----END PGP SIGNATURE-----

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



Reply via email to