1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-09-03 10:02:46 +02:00

Add $removeUnsupported parameter to toAscii()

This commit is contained in:
vlakoff
2015-02-03 02:51:22 +01:00
parent 9a0f0e16cb
commit 97e607dc5d
6 changed files with 21 additions and 12 deletions

View File

@@ -881,10 +881,11 @@ S::titleize('i like to watch DVDs at home', $ignore, 'UTF-8');
$stringy->toAscii()
S::toAscii(string $str)
S::toAscii(string $str [, boolean $removeUnsupported = true])
Returns an ASCII version of the string. A set of non-ASCII characters are
replaced with their closest ASCII counterparts, and the rest are removed.
replaced with their closest ASCII counterparts, and the rest are removed
unless instructed otherwise.
```php
S::create('fòô bàř')->toAscii();