hi, printf takes a string to be formatted as its first parameter. just wondering is there any way to store that parameter in a variable and just use the variable as the first placeholder??
@tracknutJul 27.2021 — #Sure, that field is a string like any other, so for example: <i> </i>$format = "<p>The number is <em>%d</em></p>"; printf ($format,42);
@NogDogJul 27.2021 — #And just because you might want to get all functional about it, you can even provide a function call: [code=php] printf(format(), 42);
function format() { return '<p>The number is <em>%d</em></p>'; } [/code]