| @@ 52-65 (lines=14) @@ | ||
| 49 | * |
|
| 50 | * @return mixed |
|
| 51 | */ |
|
| 52 | function vcardemailcnvrt($email) |
|
| 53 | { |
|
| 54 | $search = [ |
|
| 55 | "/\ AT /", |
|
| 56 | "/\ DOT /", |
|
| 57 | ]; |
|
| 58 | ||
| 59 | $replace = [ |
|
| 60 | '@', |
|
| 61 | '.', |
|
| 62 | ]; |
|
| 63 | ||
| 64 | $text = preg_replace($search, $replace, $email); |
|
| 65 | ||
| 66 | return $text; |
|
| 67 | } |
|
| 68 | ||
| @@ 1677-1694 (lines=18) @@ | ||
| 1674 | * |
|
| 1675 | * @return mixed |
|
| 1676 | */ |
|
| 1677 | public function convertEmail($email) |
|
| 1678 | { |
|
| 1679 | $search = [ |
|
| 1680 | "/\@/", |
|
| 1681 | "/\./", |
|
| 1682 | "/\mailto:/", |
|
| 1683 | ]; |
|
| 1684 | ||
| 1685 | $replace = [ |
|
| 1686 | ' AT ', |
|
| 1687 | ' DOT ', |
|
| 1688 | '', |
|
| 1689 | ]; |
|
| 1690 | ||
| 1691 | $text = preg_replace($search, $replace, $email); |
|
| 1692 | ||
| 1693 | return $text; |
|
| 1694 | } |
|
| 1695 | ||
| 1696 | /** |
|
| 1697 | * @param $email |
|
| @@ 1701-1716 (lines=16) @@ | ||
| 1698 | * |
|
| 1699 | * @return mixed |
|
| 1700 | */ |
|
| 1701 | public function printemailcnvrt($email) |
|
| 1702 | { |
|
| 1703 | $search = [ |
|
| 1704 | "/\ AT /", |
|
| 1705 | "/\ DOT /", |
|
| 1706 | ]; |
|
| 1707 | ||
| 1708 | $replace = [ |
|
| 1709 | '@', |
|
| 1710 | '.', |
|
| 1711 | ]; |
|
| 1712 | ||
| 1713 | $text = preg_replace($search, $replace, $email); |
|
| 1714 | ||
| 1715 | return $text; |
|
| 1716 | } |
|
| 1717 | ||
| 1718 | /** |
|
| 1719 | * @param $str |
|