fork download
  1. <?php
  2. $string = 'foo-bar-baz';
  3. '#(?<=-)(.)#',
  4. '$matches',
  5. 'return strtoupper($matches[1]);'
  6. ),
  7. $string
  8. );
  9. echo "$string\n";
  10. ?>
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
foo-Bar-Baz