$str = preg_replace('/[^\00-\255]+/u', '', $str);
More Related Contents:
- I want to make my password to contain lowercase, uppercase, 8 characters and a character
- PHP unserialize fails with non-encoded characters?
- PHP: How to sort the characters in a string?
- Delete first 3 characters and last 3 characters from String PHP
- Special Characters in FPDF with PHP
- Remove first 4 characters of a string with PHP
- Minecraft Server Pinger error [closed]
- how to make the code been invisible [closed]
- Select those record only from table 1 where city exist against state id in table 2 in PHP
- How to remove duplicate values from a multi-dimensional array in PHP
- Convert multidimensional array into single array
- Giving my function access to outside variable
- How to do URL re-writing in PHP?
- create array tree from array list
- What is the point of interfaces in PHP?
- Object of class DateTime could not be converted to string
- Destroy PHP Session on closing
- Setup HTTP expires headers using PHP and Apache
- Dynamic Paypal button encryption
- Best methods to clean up a hacked site with no clean version available?
- Using namespaces with classes created from a variable
- Bubble sort implementation in PHP? [duplicate]
- Laravel Recursive Relationships
- How can I properly URL encode a string in PHP?
- Codeigniter Transactions
- How to redirect to another page using PHP [duplicate]
- Replace add to cart button with a read more linked to product page on shop pages in WooCommerce 3
- Coverting Hex to Image in PHP?
- How to I send data from JavaScript to PHP and vice versa? [duplicate]
- PHP cURL, POST JSON