Imitate sprintf behaviour with str_replace?
<p>Basically I have a situation like this:</p>

<pre><code>$search = array(
   '?',
   '?'
);

$replace = array(
   '1',
   '2'
);
</code></pre>

<p>When I try:</p>

<pre><code>str_replace($search,$replace,"First value: ? Second Value: ?");
</code></pre>

<p>I get:</p>

<pre><code>"First value: 1 Second Value: 1"  //&gt; Notice the "1" repetead
</code></pre>

<p>Instead of </p>

<pre><code> "First value: 1 Second Value: 2"
</code></pre>

<p>How could I get the second result (even without the use of str_replace)?</p>
