Posted By

jgomez on 04/26/12


Tagged

php ascii


Versions (?)

Clean a string to pure ASCII


 / Published in: PHP
 

$asciiData = preg_replace( '/[\x7f-\xff]/', '', $dirtyData );

  1. http://php.net/manual/en/function.preg-replace.php

Report this snippet  

You need to login to post a comment.