I'm looking for function like sprintf(), except whereas with sprintf() you bind the values by order of arguments, I want something where I can bind variables by name. So, if I had the string "Hello $name! We're please to have you visit, $name!"
, you could pass an array or something and get the resultant string from it.
Something like the PDO statements, but just for plain strings, not database queries. What can I use?