Advertisement
dead__

Untitled

May 25th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. <?php
  2.     $test = (empty($_GET['txt']) ? ('Hallo, @dead: was geht?') : ($_GET['txt']));
  3.     echo preg_replace("/@(\w+):/", "<b><i>(ersetzt)</i> $1</b>", $test);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement