unicode_set_subst_char
(No version information available, might be only in CVS)
unicode_set_subst_char — Set the substitution character for string conversion errors
說明
bool unicode_set_subst_char
( unicode $character
)
When converting a string from or to unicode, an invalid or unconvertable character may be encountered. When the conversion error mode is set to U_CONV_ERROR_SUBST, the character that caused the error is substituted by a character set by this function. The default substitution character is ?.
參數
- character
-
The substitution character to use.
Return值
如果成功則回傳 TRUE,失敗則回傳 FALSE。
錯誤/例外
Emits a E_WARNING level error if character is invalid.
註釋
Warning
本函式是實驗性的。這個函式的行為、名稱、和關於此函式的任何其他文件在未來PHP的發行中可能會在不通知的情況下改變。 使用此函式需自行承擔風險。