title: sprintf using the same values multiple times
body: <p>I'm trying to use the same value in different places when using sprintf, but failing.</p>
  
  <pre><code>&lt;?php
  
  $score = 50;
  $percent = 10;
  
  $str = "Hello: You scored %s (%s%%). Your score is %2$s %%"; //Problem is here %2$s
  
  echo sprintf($str,$score,$percent);
  ?&gt;
  </code></pre>
  
  <p>I get this error: <code>Notice: Undefined variable: s in C:\web\apache\htdocs\sprintf.php on line 6 Warning: sprintf(): Too few arguments in C:\web\apache\htdocs\sprintf.php on line 8</code></p>