I’m just wondering if omitting an argument from sprintf is going to cause any issues.
I can’t recall for sure, but I think on one of my sites if I omitted the arguments it error’d out, but I tried it on a different server and it’s not posting any issues with all php error notices turned on.
Just want to double check!
Example:
sprintf('This is an example %s','test'); // outputs "This is an example test"
sprintf('This is an example','test'); // outputs "This is an example"
It will error if you pass too few arguments, but too many is fine. Just like the rest of PHP, if you pass too many arguments, they will just be ignored.