|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-10-16 19:51 UTC] mfischer@php.net
[2001-10-17 10:49 UTC] jeroen@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
This has been confirmed in 4.0.6 on the web and as a standalone for both print and printf. Output from a test: (root) hot: 1 : /content/adcritic --> php <?php printf('<a href="http://">%s</a>\n',"hi"); X-Powered-By: PHP/4.0.6 Content-type: text/html <a href="http://">hi</a>\n(root) hot: 1 : /content/adcritic --> php <?php printf("<a href='http://'>%s</a>\n","hi"); X-Powered-By: PHP/4.0.6 Content-type: text/html <a href='http://'>hi</a> This works: printf("<a href='http://'>%s</a>\n","hi"); This does NOT work (prints literal "\n"): printf('<a href="http://">%s</a>\n',"hi"); Same applies to print.