Guest User

Untitled

a guest
Feb 20th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. <?php
  2.     $str = "[mailto:test.ru@мыло.com test.ru@мыло.com]";
  3.     echo preg_replace('!\[mailto:(.*)@.*\]!imsU', '<img src="http://domain.com/images/$1/img.png">', $str);
  4. ?>
Advertisement
Add Comment
Please, Sign In to add comment