<?php $str = "up vote -1 down vote favorite What is the best way to filter characters like this: ็็็็็็็็็็็็็็็็็็ ็็็็็็็"; echo preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $str);
You have javascript disabled. You will not be able to edit any code.