Forum Moderators: coopster

Message Too Old, No Replies

Printf format string help

printf

         

chrissim

3:12 pm on Apr 3, 2010 (gmt 0)

10+ Year Member



hi

Can someone please help me how to write printf format string on this echo statement.

echo pullRating ($r['id'],true,false,false,NULL);

i have the printf code in my script which i need to insert those inside the printf but i have no idea how to do it.

Example of the printf code but i have to insert those echo function above between the <td></td>

printf("<td></td>\n", $php_SELF, $r["id"], $r[""], $r[""]);

Thanks

Christina

eelixduppy

2:15 pm on Apr 30, 2010 (gmt 0)



So something like this?


printf("<td>%s</td>\n", pullRating($r['id'],true,false,false,NULL));



If you need further assistance with the printf function, you should refer to the manual: [php.net...]