Jump to content

[SOLVED] printf question


sKunKbad

Recommended Posts

If I have a variable that holds some text:

 

$output = "<p>";

 

and then want to add to that variable with printf

 

$output .= printf(....);

 

then print:

 

print $output;

 

it doesn't work. it prints what is inside printf before what was in $output, and what was in printf is not in $output. Is what I want to do possible? I'm really just adding a string to a string.

Link to comment
https://forums.phpfreaks.com/topic/154764-solved-printf-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.