Skip to content

Instantly share code, notes, and snippets.

View mattweg-zz's full-sized avatar

Matt Weghorst mattweg-zz

  • Santa Monica, CA
View GitHub Profile
@jaywilliams
jaywilliams / convert_ascii.php
Created May 28, 2009 19:25
This simple function will remove any non-ASCII character. Feel free to fork and extend!
<?php
/**
* Remove any non-ASCII characters and convert known non-ASCII characters
* to their ASCII equivalents, if possible.
*
* @param string $string
* @return string $string
* @author Jay Williams <myd3.com>
* @license MIT License
* @link http://gist.github.com/119517