note 16115 added to function.printf

From: Date: Tue, 16 Oct 2001 23:24:35 +0000
Subject: note 16115 added to function.printf
Groups: php.notes 
Request: Send a blank email to php-notes+get-19016@lists.php.net to get a copy of this message
if you do this: printf('<a href="http://www.adcritic.com/">%s</a>\n',"hi"); You will get: <a href="http://www.adcritic.com/">Hi</a>\n A literal "\n", not a carriage return. If you swap the single and double quotes, it works as expected. -- http://www.php.net/manual/en/function.printf.php http://master.php.net/manage/user-notes.php?action=edit+16115 http://master.php.net/manage/user-notes.php?action=delete+16115 http://master.php.net/manage/user-notes.php?action=reject+16115

« previous php.notes (#19016) next »