fork download
  1. <?php
  2. $s = 'THERE IS CONTENT=%0 AND THERE IS CONTENT=%1';
  3. $pattern = '/CONTENT=%0/';
  4. $replacement = 'CONTENT=#2';
  5. $s = preg_replace($pattern, $replacement, $s);
  6. print $s;
  7. ?>
Success #stdin #stdout 0.02s 13064KB
stdin
Standard input is empty
stdout
THERE IS CONTENT=#2 AND THERE IS CONTENT=%1