| @@ 52-65 (lines=14) @@ | ||
| 49 | * |
|
| 50 | * @return mixed |
|
| 51 | */ |
|
| 52 | function vcardemailcnvrt($email) |
|
| 53 | { |
|
| 54 | $search = array( |
|
| 55 | "/\ AT /", |
|
| 56 | "/\ DOT /", |
|
| 57 | ); |
|
| 58 | ||
| 59 | $replace = array( |
|
| 60 | '@', |
|
| 61 | '.', |
|
| 62 | ); |
|
| 63 | ||
| 64 | $text = preg_replace($search, $replace, $email); |
|
| 65 | ||
| 66 | return $text; |
|
| 67 | } |
|
| 68 | ||
| @@ 1886-1903 (lines=18) @@ | ||
| 1883 | * |
|
| 1884 | * @return mixed |
|
| 1885 | */ |
|
| 1886 | public function convertEmail($email) |
|
| 1887 | { |
|
| 1888 | $search = array( |
|
| 1889 | "/\@/", |
|
| 1890 | "/\./", |
|
| 1891 | "/\mailto:/", |
|
| 1892 | ); |
|
| 1893 | ||
| 1894 | $replace = array( |
|
| 1895 | ' AT ', |
|
| 1896 | ' DOT ', |
|
| 1897 | '', |
|
| 1898 | ); |
|
| 1899 | ||
| 1900 | $text = preg_replace($search, $replace, $email); |
|
| 1901 | ||
| 1902 | return $text; |
|
| 1903 | } |
|
| 1904 | ||
| 1905 | /** |
|
| 1906 | * @param $email |
|
| @@ 1910-1925 (lines=16) @@ | ||
| 1907 | * |
|
| 1908 | * @return mixed |
|
| 1909 | */ |
|
| 1910 | public function printemailcnvrt($email) |
|
| 1911 | { |
|
| 1912 | $search = array( |
|
| 1913 | "/\ AT /", |
|
| 1914 | "/\ DOT /", |
|
| 1915 | ); |
|
| 1916 | ||
| 1917 | $replace = array( |
|
| 1918 | '@', |
|
| 1919 | '.', |
|
| 1920 | ); |
|
| 1921 | ||
| 1922 | $text = preg_replace($search, $replace, $email); |
|
| 1923 | ||
| 1924 | return $text; |
|
| 1925 | } |
|
| 1926 | ||
| 1927 | /** |
|
| 1928 | * @param $str |
|