Replaces 'ill-formed' byte sequences with '?'.
See: https://github.com/php/php-src/pull/1099
(PHP 7 >= 7.2.0, PHP 8)
mb_scrub — 文字列に含まれる不正なバイト列を代替文字に置き換える
$string
, ?string $encoding
= null
): string
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
string
encoding
バージョン | 説明 |
---|---|
8.0.0 |
encoding は、nullable になりました。
|
Replaces 'ill-formed' byte sequences with '?'.
See: https://github.com/php/php-src/pull/1099