title: How to increment count in the replacement string when using preg_replace?
body: <p>I have this code :</p>
  
  <pre><code>$count = 0;    
  preg_replace('/test/', 'test'. $count, $content,-1,$count);
  </code></pre>
  
  <p>For every replace, I obtain test0. </p>
  
  <p>I would like to get test0, test1, test2 etc..</p>