Skip to content

Instantly share code, notes, and snippets.

View yswery's full-sized avatar

Yif Swery yswery

View GitHub Profile

Keybase proof

I hereby claim:

  • I am yswery on github.
  • I am yswery (https://keybase.io/yswery) on keybase.
  • I have a public key ASBitn-QkXugBWTp0iuhp9Na9yCP7nFKLCFPi0tL1FUaKQo

To claim this, I am signing this object:

function removeAccents($string) {
if (!preg_match('/[\x80-\xff]/', $string))
return $string;
$chars = array(
// Decompositions for Latin-1 Supplement
chr(195) . chr(128) => 'A', chr(195) . chr(129) => 'A',
chr(195) . chr(130) => 'A', chr(195) . chr(131) => 'A',
chr(195) . chr(132) => 'A', chr(195) . chr(133) => 'A',
chr(195) . chr(135) => 'C', chr(195) . chr(136) => 'E',
chr(195) . chr(137) => 'E', chr(195) . chr(138) => 'E',