fork download
  1. <?php
  2.  
  3. function remove($t)
  4. {
  5. return preg_replace('/\$[0-9]+!/','',$t);
  6. }
  7.  
  8. echo remove("Hello $23! world $2! today");
  9.  
  10. ?>
Success #stdin #stdout 0.02s 52480KB
stdin
Standard input is empty
stdout
Hello  world  today