printf function

From: Date: Sun, 25 Jun 2000 06:07:29 +0000
Subject: printf function
Groups: php.general 
Request: Send a blank email to php-general+get-2955@lists.php.net to get a copy of this message
Got another scenario.. $tDate = date("m.d.Y"); $tTime = date("h:i a"); trying to do this (just a snippet) printf("<br><div class=\"small\">posted by %s on %s at %s</div>\n", $name, $tDate, $tTime); tDate: 06.25.2000 tTime: 02:04 am While I understand %s represents a string variable, my question is HOW do I set this printf function so that it will read $tDate and $tTime correctly? I tried: printf("<br><div class ... posted by %s on $tDate, $tTime\n"); I know this works with echo, but want to find the answer, if there is one, to this printf function. Thanks! Chris ___________________________ got sano? (new design!) http://www.rit.edu/~cms0670

« previous php.general (#2955) next »