Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $test = (empty($_GET['txt']) ? ('Hallo, @dead: was geht?') : ($_GET['txt']));
- echo preg_replace("/@(\w+):/", "<b><i>(ersetzt)</i> $1</b>", $test);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement