Is there an equivalent of Python str.format in PHP?
str.format
In Python:
\"my {} {} cat\".format(\"red\", \"fat\")
All I see I can d
sprintf is the closest thing. It's the old-style Python string formatting:
sprintf("my %s %s cat", "red", "fat")