Clean a string to pure ASCII


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

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


Copy this code and paste it in your HTML
  1. http://php.net/manual/en/function.preg-replace.php

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.