| @@ 1887-1904 (lines=18) @@ | ||
| 1884 | * |
|
| 1885 | * @return mixed |
|
| 1886 | */ |
|
| 1887 | public function convertEmail($email) |
|
| 1888 | { |
|
| 1889 | $search = [ |
|
| 1890 | "/\@/", |
|
| 1891 | "/\./", |
|
| 1892 | "/\mailto:/", |
|
| 1893 | ]; |
|
| 1894 | ||
| 1895 | $replace = [ |
|
| 1896 | ' AT ', |
|
| 1897 | ' DOT ', |
|
| 1898 | '', |
|
| 1899 | ]; |
|
| 1900 | ||
| 1901 | $text = preg_replace($search, $replace, $email); |
|
| 1902 | ||
| 1903 | return $text; |
|
| 1904 | } |
|
| 1905 | ||
| 1906 | /** |
|
| 1907 | * @param $email |
|
| @@ 1911-1926 (lines=16) @@ | ||
| 1908 | * |
|
| 1909 | * @return mixed |
|
| 1910 | */ |
|
| 1911 | public function printemailcnvrt($email) |
|
| 1912 | { |
|
| 1913 | $search = [ |
|
| 1914 | "/\ AT /", |
|
| 1915 | "/\ DOT /", |
|
| 1916 | ]; |
|
| 1917 | ||
| 1918 | $replace = [ |
|
| 1919 | '@', |
|
| 1920 | '.', |
|
| 1921 | ]; |
|
| 1922 | ||
| 1923 | $text = preg_replace($search, $replace, $email); |
|
| 1924 | ||
| 1925 | return $text; |
|
| 1926 | } |
|
| 1927 | ||
| 1928 | /** |
|
| 1929 | * @param $str |
|
| @@ 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 | ||