PHP equivalent to C# string formatting
<p>I am trying to duplicate my C# string formatting where i can do something like this:</p>

<pre><code>Console.Writeline("My name is [0].  I have been a [1] for [2] days.", "bob", "member", "12")
</code></pre>

<p>I want to be able to do this in PHP, but as far as I know the only function that resembles this is sprintf().  Is there a function that is identical to the one above</p>

<pre><code>echo function("My name is [0].  I have been a [1] for [2] days.", "bob", "member", "12")
</code></pre>
