PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.8.6
Kubio AI Page Builder v2.8.6
2.9.0 2.8.6 2.8.5 2.8.4 2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / vendor / fzaninotto / faker / src / Faker / Provider / Internet.php
kubio / vendor / fzaninotto / faker / src / Faker / Provider Last commit date
ar_JO 1 year ago ar_SA 1 year ago at_AT 1 year ago bg_BG 1 year ago bn_BD 1 year ago cs_CZ 1 year ago da_DK 1 year ago de_AT 1 year ago de_CH 1 year ago de_DE 1 year ago el_CY 1 year ago el_GR 1 year ago en_AU 1 year ago en_CA 1 year ago en_GB 1 year ago en_HK 1 year ago en_IN 1 year ago en_NG 1 year ago en_NZ 1 year ago en_PH 1 year ago en_SG 1 year ago en_UG 1 year ago en_US 1 year ago en_ZA 1 year ago es_AR 1 year ago es_ES 1 year ago es_PE 1 year ago es_VE 1 year ago et_EE 1 year ago fa_IR 1 year ago fi_FI 1 year ago fr_BE 1 year ago fr_CA 1 year ago fr_CH 1 year ago fr_FR 1 year ago he_IL 1 year ago hr_HR 1 year ago hu_HU 1 year ago hy_AM 1 year ago id_ID 1 year ago is_IS 1 year ago it_CH 1 year ago it_IT 1 year ago ja_JP 1 year ago ka_GE 1 year ago kk_KZ 1 year ago ko_KR 1 year ago lt_LT 1 year ago lv_LV 1 year ago me_ME 1 year ago mn_MN 1 year ago ms_MY 1 year ago nb_NO 1 year ago ne_NP 1 year ago nl_BE 1 year ago nl_NL 1 year ago pl_PL 1 year ago pt_BR 1 year ago pt_PT 1 year ago ro_MD 1 year ago ro_RO 1 year ago ru_RU 1 year ago sk_SK 1 year ago sl_SI 1 year ago sr_Cyrl_RS 1 year ago sr_Latn_RS 1 year ago sr_RS 1 year ago sv_SE 1 year ago th_TH 1 year ago tr_TR 1 year ago uk_UA 1 year ago vi_VN 1 year ago zh_CN 1 year ago zh_TW 1 year ago Address.php 1 year ago Barcode.php 1 year ago Base.php 1 year ago Biased.php 1 year ago Color.php 1 year ago Company.php 1 year ago DateTime.php 1 year ago File.php 1 year ago HtmlLorem.php 1 year ago Image.php 1 year ago Internet.php 1 year ago Lorem.php 1 year ago Miscellaneous.php 1 year ago Payment.php 1 year ago Person.php 1 year ago PhoneNumber.php 1 year ago Text.php 1 year ago UserAgent.php 1 year ago Uuid.php 1 year ago
Internet.php
372 lines
1 <?php
2
3 namespace Faker\Provider;
4
5 class Internet extends Base
6 {
7 protected static $freeEmailDomain = array('gmail.com', 'yahoo.com', 'hotmail.com');
8 protected static $tld = array('com', 'com', 'com', 'com', 'com', 'com', 'biz', 'info', 'net', 'org');
9
10 protected static $userNameFormats = array(
11 '{{lastName}}.{{firstName}}',
12 '{{firstName}}.{{lastName}}',
13 '{{firstName}}##',
14 '?{{lastName}}',
15 );
16 protected static $emailFormats = array(
17 '{{userName}}@{{domainName}}',
18 '{{userName}}@{{freeEmailDomain}}',
19 );
20 protected static $urlFormats = array(
21 'http://www.{{domainName}}/',
22 'http://{{domainName}}/',
23 'http://www.{{domainName}}/{{slug}}',
24 'http://www.{{domainName}}/{{slug}}',
25 'https://www.{{domainName}}/{{slug}}',
26 'http://www.{{domainName}}/{{slug}}.html',
27 'http://{{domainName}}/{{slug}}',
28 'http://{{domainName}}/{{slug}}',
29 'http://{{domainName}}/{{slug}}.html',
30 'https://{{domainName}}/{{slug}}.html',
31 );
32
33 /**
34 * @example 'jdoe@acme.biz'
35 */
36 public function email()
37 {
38 $format = static::randomElement(static::$emailFormats);
39
40 return $this->generator->parse($format);
41 }
42
43 /**
44 * @example 'jdoe@example.com'
45 */
46 final public function safeEmail()
47 {
48 return preg_replace('/\s/u', '', $this->userName() . '@' . static::safeEmailDomain());
49 }
50
51 /**
52 * @example 'jdoe@gmail.com'
53 */
54 public function freeEmail()
55 {
56 return preg_replace('/\s/u', '', $this->userName() . '@' . static::freeEmailDomain());
57 }
58
59 /**
60 * @example 'jdoe@dawson.com'
61 */
62 public function companyEmail()
63 {
64 return preg_replace('/\s/u', '', $this->userName() . '@' . $this->domainName());
65 }
66
67 /**
68 * @example 'gmail.com'
69 */
70 public static function freeEmailDomain()
71 {
72 return static::randomElement(static::$freeEmailDomain);
73 }
74
75 /**
76 * @example 'example.org'
77 */
78 final public static function safeEmailDomain()
79 {
80 $domains = array(
81 'example.com',
82 'example.org',
83 'example.net'
84 );
85
86 return static::randomElement($domains);
87 }
88 /**
89 * @example 'jdoe'
90 */
91 public function userName()
92 {
93 $format = static::randomElement(static::$userNameFormats);
94 $username = static::bothify($this->generator->parse($format));
95
96 $username = strtolower(static::transliterate($username));
97
98 // check if transliterate() didn't support the language and removed all letters
99 if (trim($username, '._') === '') {
100 throw new \Exception('userName failed with the selected locale. Try a different locale or activate the "intl" PHP extension.');
101 }
102
103 // clean possible trailing dots from first/last names
104 $username = str_replace('..', '.', $username);
105 $username = rtrim($username, '.');
106
107 return $username;
108 }
109 /**
110 * @example 'fY4èHdZv68'
111 */
112 public function password($minLength = 6, $maxLength = 20)
113 {
114 $pattern = str_repeat('*', $this->numberBetween($minLength, $maxLength));
115
116 return $this->asciify($pattern);
117 }
118
119 /**
120 * @example 'tiramisu.com'
121 */
122 public function domainName()
123 {
124 return $this->domainWord() . '.' . $this->tld();
125 }
126
127 /**
128 * @example 'faber'
129 */
130 public function domainWord()
131 {
132 $lastName = $this->generator->format('lastName');
133
134 $lastName = strtolower(static::transliterate($lastName));
135
136 // check if transliterate() didn't support the language and removed all letters
137 if (trim($lastName, '._') === '') {
138 throw new \Exception('domainWord failed with the selected locale. Try a different locale or activate the "intl" PHP extension.');
139 }
140
141 // clean possible trailing dot from last name
142 $lastName = rtrim($lastName, '.');
143
144 return $lastName;
145 }
146
147 /**
148 * @example 'com'
149 */
150 public function tld()
151 {
152 return static::randomElement(static::$tld);
153 }
154
155 /**
156 * @example 'http://www.runolfsdottir.com/'
157 */
158 public function url()
159 {
160 $format = static::randomElement(static::$urlFormats);
161
162 return $this->generator->parse($format);
163 }
164
165 /**
166 * @example 'aut-repellat-commodi-vel-itaque-nihil-id-saepe-nostrum'
167 */
168 public function slug($nbWords = 6, $variableNbWords = true)
169 {
170 if ($nbWords <= 0) {
171 return '';
172 }
173 if ($variableNbWords) {
174 $nbWords = (int) ($nbWords * mt_rand(60, 140) / 100) + 1;
175 }
176 $words = $this->generator->words($nbWords);
177
178 return join('-', $words);
179 }
180
181 /**
182 * @example '237.149.115.38'
183 */
184 public function ipv4()
185 {
186 return long2ip(mt_rand(0, 1) == 0 ? mt_rand(-2147483648, -2) : mt_rand(16777216, 2147483647));
187 }
188
189 /**
190 * @example '35cd:186d:3e23:2986:ef9f:5b41:42a4:e6f1'
191 */
192 public function ipv6()
193 {
194 $res = array();
195 for ($i=0; $i < 8; $i++) {
196 $res []= dechex(mt_rand(0, "65535"));
197 }
198
199 return join(':', $res);
200 }
201
202 /**
203 * @example '10.1.1.17'
204 */
205 public static function localIpv4()
206 {
207 if (static::numberBetween(0, 1) === 0) {
208 // 10.x.x.x range
209 return long2ip(static::numberBetween(ip2long("10.0.0.0"), ip2long("10.255.255.255")));
210 }
211
212 // 192.168.x.x range
213 return long2ip(static::numberBetween(ip2long("192.168.0.0"), ip2long("192.168.255.255")));
214 }
215
216 /**
217 * @example '32:F1:39:2F:D6:18'
218 */
219 public static function macAddress()
220 {
221 for ($i=0; $i<6; $i++) {
222 $mac[] = sprintf('%02X', static::numberBetween(0, 0xff));
223 }
224 $mac = implode(':', $mac);
225
226 return $mac;
227 }
228
229 protected static function transliterate($string)
230 {
231 if (0 === preg_match('/[^A-Za-z0-9_.]/', $string)) {
232 return $string;
233 }
234
235 $transId = 'Any-Latin; Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC;';
236 if (class_exists('Transliterator', false) && $transliterator = \Transliterator::create($transId)) {
237 $transString = $transliterator->transliterate($string);
238 } else {
239 $transString = static::toAscii($string);
240 }
241
242 return preg_replace('/[^A-Za-z0-9_.]/u', '', $transString);
243 }
244
245 protected static function toAscii($string)
246 {
247 static $arrayFrom, $arrayTo;
248
249 if (empty($arrayFrom)) {
250 $transliterationTable = array(
251 'IJ'=>'I', 'Ö'=>'O', 'Œ'=>'O', 'Ü'=>'U', 'ä'=>'a', 'æ'=>'a',
252 'ij'=>'i', 'ö'=>'o', 'œ'=>'o', 'ü'=>'u', 'ß'=>'s', 'ſ'=>'s',
253 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', '�
254 '=>'A',
255 'Æ'=>'A', 'Ā'=>'A', 'Ą'=>'A', 'Ă'=>'A', 'Ç'=>'C', 'Ć'=>'C',
256 'Č'=>'C', 'Ĉ'=>'C', 'Ċ'=>'C', 'Ď'=>'D', 'Đ'=>'D', 'È'=>'E',
257 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E', 'Ē'=>'E', 'Ę'=>'E', 'Ě'=>'E',
258 'Ĕ'=>'E', 'Ė'=>'E', 'Ĝ'=>'G', 'Ğ'=>'G', 'Ġ'=>'G', 'Ģ'=>'G',
259 'Ĥ'=>'H', 'Ħ'=>'H', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I',
260 'Ī'=>'I', 'Ĩ'=>'I', 'Ĭ'=>'I', 'Į'=>'I', 'İ'=>'I', 'Ĵ'=>'J',
261 'Ķ'=>'K', 'Ľ'=>'K', 'Ĺ'=>'K', 'Ļ'=>'K', 'Ŀ'=>'K', 'Ł'=>'L',
262 'Ñ'=>'N', 'Ń'=>'N', 'Ň'=>'N', '�
263 '=>'N', 'Ŋ'=>'N', 'Ò'=>'O',
264 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ø'=>'O', 'Ō'=>'O', 'Ő'=>'O',
265 'Ŏ'=>'O', 'Ŕ'=>'R', 'Ř'=>'R', 'Ŗ'=>'R', 'Ś'=>'S', 'Ş'=>'S',
266 'Ŝ'=>'S', 'Ș'=>'S', 'Š'=>'S', 'Ť'=>'T', 'Ţ'=>'T', 'Ŧ'=>'T',
267 'Ț'=>'T', 'Ù'=>'U', 'Ú'=>'U', 'Û'=>'U', 'Ū'=>'U', 'Ů'=>'U',
268 'Ű'=>'U', 'Ŭ'=>'U', 'Ũ'=>'U', 'Ų'=>'U', 'Ŵ'=>'W', 'Ŷ'=>'Y',
269 'Ÿ'=>'Y', 'Ý'=>'Y', 'Ź'=>'Z', 'Ż'=>'Z', 'Ž'=>'Z', 'à'=>'a',
270 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ā'=>'a', '�
271 '=>'a', 'ă'=>'a',
272 'å'=>'a', 'ç'=>'c', 'ć'=>'c', 'č'=>'c', 'ĉ'=>'c', 'ċ'=>'c',
273 'ď'=>'d', 'đ'=>'d', 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e',
274 'ē'=>'e', 'ę'=>'e', 'ě'=>'e', 'ĕ'=>'e', 'ė'=>'e', 'ƒ'=>'f',
275 'ĝ'=>'g', 'ğ'=>'g', 'ġ'=>'g', 'ģ'=>'g', 'ĥ'=>'h', 'ħ'=>'h',
276 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ī'=>'i', 'ĩ'=>'i',
277 'ĭ'=>'i', 'į'=>'i', 'ı'=>'i', 'ĵ'=>'j', 'ķ'=>'k', 'ĸ'=>'k',
278 'ł'=>'l', 'ľ'=>'l', 'ĺ'=>'l', 'ļ'=>'l', 'ŀ'=>'l', 'ñ'=>'n',
279 'ń'=>'n', 'ň'=>'n', 'ņ'=>'n', 'ʼn'=>'n', 'ŋ'=>'n', 'ò'=>'o',
280 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', 'ø'=>'o', 'ō'=>'o', 'ő'=>'o',
281 'ŏ'=>'o', 'ŕ'=>'r', 'ř'=>'r', 'ŗ'=>'r', 'ś'=>'s', 'š'=>'s',
282 'ť'=>'t', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ū'=>'u', 'ů'=>'u',
283 'ű'=>'u', 'ŭ'=>'u', 'ũ'=>'u', 'ų'=>'u', 'ŵ'=>'w', 'ÿ'=>'y',
284 'ý'=>'y', 'ŷ'=>'y', 'ż'=>'z', 'ź'=>'z', 'ž'=>'z', 'Α'=>'A',
285 'Ά'=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A',
286 ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A',
287 ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A',
288 ''=>'A', ''=>'A', ''=>'A', 'Β'=>'B', 'Γ'=>'G', 'Δ'=>'D',
289 'Ε'=>'E', 'Έ'=>'E', ''=>'E', ''=>'E', ''=>'E', ''=>'E',
290 ''=>'E', ''=>'E', ''=>'E', 'Ζ'=>'Z', 'Η'=>'I', 'Ή'=>'I',
291 ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I',
292 ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I',
293 ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I',
294 'Θ'=>'T', 'Ι'=>'I', 'Ί'=>'I', 'Ϊ'=>'I', ''=>'I', ''=>'I',
295 ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I', 'Ἷ'=>'I',
296 ''=>'I', ''=>'I', ''=>'I', 'Κ'=>'K', 'Λ'=>'L', 'Μ'=>'M',
297 'Ν'=>'N', 'Ξ'=>'K', 'Ο'=>'O', 'Ό'=>'O', ''=>'O', ''=>'O',
298 ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O', 'Π'=>'P',
299 'Ρ'=>'R', ''=>'R', 'Σ'=>'S', 'Τ'=>'T', 'Υ'=>'Y', 'Ύ'=>'Y',
300 'Ϋ'=>'Y', ''=>'Y', ''=>'Y', ''=>'Y', ''=>'Y', ''=>'Y',
301 ''=>'Y', ''=>'Y', 'Φ'=>'F', 'Χ'=>'X', 'Ψ'=>'P', 'Ω'=>'O',
302 'Ώ'=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O',
303 ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O',
304 ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O',
305 ''=>'O', 'α'=>'a', 'ά'=>'a', ''=>'a', ''=>'a', ''=>'a',
306 'ἃ'=>'a', 'ἄ'=>'a', '�
307 '=>'a', ''=>'a', ''=>'a', ''=>'a',
308 'ᾁ'=>'a', 'ᾂ'=>'a', 'ᾃ'=>'a', 'ᾄ'=>'a', '�
309 '=>'a', ''=>'a',
310 ''=>'a', ''=>'a', ''=>'a', ''=>'a', ''=>'a', ''=>'a',
311 ''=>'a', ''=>'a', ''=>'a', 'β'=>'b', 'γ'=>'g', 'δ'=>'d',
312 'ε'=>'e', 'έ'=>'e', ''=>'e', ''=>'e', ''=>'e', ''=>'e',
313 ''=>'e', ''=>'e', ''=>'e', 'ζ'=>'z', 'η'=>'i', 'ή'=>'i',
314 ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i',
315 ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i',
316 ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i',
317 ''=>'i', ''=>'i', ''=>'i', ''=>'i', 'θ'=>'t', 'ι'=>'i',
318 'ί'=>'i', 'ϊ'=>'i', 'ΐ'=>'i', ''=>'i', ''=>'i', ''=>'i',
319 ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i',
320 ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i', 'κ'=>'k',
321 'λ'=>'l', 'μ'=>'m', 'ν'=>'n', 'ξ'=>'k', 'ο'=>'o', 'ό'=>'o',
322 'ὀ'=>'o', 'ὁ'=>'o', 'ὂ'=>'o', 'ὃ'=>'o', 'ὄ'=>'o', '�
323 '=>'o',
324 ''=>'o', 'π'=>'p', 'ρ'=>'r', ''=>'r', ''=>'r', 'σ'=>'s',
325 'ς'=>'s', 'τ'=>'t', '�
326 '=>'y', 'ύ'=>'y', 'ϋ'=>'y', 'ΰ'=>'y',
327 ''=>'y', ''=>'y', ''=>'y', ''=>'y', ''=>'y', ''=>'y',
328 ''=>'y', ''=>'y', ''=>'y', ''=>'y', ''=>'y', ''=>'y',
329 ''=>'y', ''=>'y', 'φ'=>'f', 'χ'=>'x', 'ψ'=>'p', 'ω'=>'o',
330 'ώ'=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o',
331 ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o',
332 ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o',
333 ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o', 'А'=>'A',
334 'Б'=>'B', 'В'=>'V', 'Г'=>'G', 'Д'=>'D', 'Е'=>'E', 'Ё'=>'E',
335 'Ж'=>'Z', 'З'=>'Z', 'И'=>'I', 'Й'=>'I', 'К'=>'K', 'Л'=>'L',
336 'М'=>'M', 'Н'=>'N', 'О'=>'O', 'П'=>'P', 'Р'=>'R', 'С'=>'S',
337 'Т'=>'T', 'У'=>'U', 'Ф'=>'F', 'Х'=>'K', 'Ц'=>'T', 'Ч'=>'C',
338 'Ш'=>'S', 'Щ'=>'S', 'Ы'=>'Y', 'Э'=>'E', 'Ю'=>'Y', 'Я'=>'Y',
339 'а'=>'A', 'б'=>'B', 'в'=>'V', 'г'=>'G', 'д'=>'D', 'е'=>'E',
340 'ё'=>'E', 'ж'=>'Z', 'з'=>'Z', 'и'=>'I', 'й'=>'I', 'к'=>'K',
341 'л'=>'L', 'м'=>'M', 'н'=>'N', 'о'=>'O', 'п'=>'P', 'р'=>'R',
342 'с'=>'S', 'т'=>'T', 'у'=>'U', 'ф'=>'F', '�
343 '=>'K', 'ц'=>'T',
344 'ч'=>'C', 'ш'=>'S', 'щ'=>'S', 'ы'=>'Y', 'э'=>'E', 'ю'=>'Y',
345 'я'=>'Y', 'ð'=>'d', 'Ð'=>'D', 'þ'=>'t', 'Þ'=>'T', ''=>'a',
346 ''=>'b', ''=>'g', ''=>'d', ''=>'e', ''=>'v', ''=>'z',
347 ''=>'t', ''=>'i', ''=>'k', ''=>'l', ''=>'m', ''=>'n',
348 ''=>'o', ''=>'p', ''=>'z', ''=>'r', ''=>'s', ''=>'t',
349 ''=>'u', ''=>'p', ''=>'k', ''=>'g', ''=>'q', ''=>'s',
350 ''=>'c', ''=>'t', ''=>'d', ''=>'t', ''=>'c', ''=>'k',
351 ''=>'j', ''=>'h', 'ţ'=>'t', 'ʼ'=>"'", '̧'=>'', ''=>'h',
352 ''=>"'", ''=>"'", ''=>'u', '/'=>'', 'ế'=>'e', ''=>'a',
353 ''=>'i', ''=>'a', ''=>'e', ''=>'i', ''=>'o', ''=>'e',
354 'ơ'=>'o', ''=>'a', ''=>'a', 'ư'=>'u', ''=>'a', ''=>'a',
355 ''=>'d', ''=>'H', ''=>'D', 'ș'=>'s', 'ț'=>'t', ''=>'o',
356 ''=>'a', 'ş'=>'s', "'"=>'', 'ու'=>'u', 'ա'=>'a', 'բ'=>'b',
357 'գ'=>'g', 'դ'=>'d', 'ե'=>'e', 'զ'=>'z', 'է'=>'e', 'ը'=>'y',
358 'թ'=>'t', 'ժ'=>'zh', 'ի'=>'i', 'լ'=>'l', 'խ'=>'kh', 'ծ'=>'ts',
359 'կ'=>'k', 'հ'=>'h', 'ձ'=>'dz', 'ղ'=>'gh', 'ճ'=>'ch', 'մ'=>'m',
360 'յ'=>'y', 'ն'=>'n', 'շ'=>'sh', 'ո'=>'o', 'չ'=>'ch', 'պ'=>'p',
361 'ջ'=>'j', 'ռ'=>'r', 'ս'=>'s', 'վ'=>'v', 'տ'=>'t', 'ր'=>'r',
362 'ց'=>'ts', 'փ'=>'p', 'ք'=>'q', 'և'=>'ev', '�
363 '=>'o', 'ֆ'=>'f',
364 );
365 $arrayFrom = array_keys($transliterationTable);
366 $arrayTo = array_values($transliterationTable);
367 }
368
369 return str_replace($arrayFrom, $arrayTo, $string);
370 }
371 }
372