Clean a string to pure ASCII


/ Published in: PHP
Save to your folder(s)

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.