Skip to content

Instantly share code, notes, and snippets.

View deespater's full-sized avatar

Dmitry Ovchinnikov deespater

  • Tallinn, Estonia
View GitHub Profile
@deespater
deespater / gist:5395192
Last active February 13, 2023 00:31
Alphabets in different European languages
<?php
$l = range('a', 'z');
$alphabets = array(
'en' => $l,
'fr' => array_merge($l, array('é', 'à', 'è', 'ù', 'â', 'ê', 'î', 'ô', 'û', 'ç', 'ë', 'ï', 'ü', 'ÿ', 'æ', 'œ')),
'de' => array_merge($l, array('ä', 'ö', 'ü', 'ß')),
'es' => array_merge($l, array('ñ', 'ü', 'ch', 'll')),
'it' => array_merge($l, array('à', 'è', 'é', 'ì', 'í', 'î', 'ò', 'ó', 'ù', 'ú')),
'pt' => array_merge($l, array('á', 'â', 'ã', 'à', 'ç', 'é', 'ê', 'í', 'ó', 'ô', 'õ', 'ú', 'ü')),
'el' => array('α', 'β', 'γ', 'δ', 'ε', 'ζ', 'η', 'θ', 'ι', 'κ', 'λ', 'μ', 'ν', 'ξ', 'ο', 'π', 'ρ', 'σ', 'τ', 'υ', 'φ', 'χ', 'ψ', 'ω'),