Bom
in package
Byte Order Markに関する処理を提供するクラス
Table of Contents
Constants
- UTF_8 = '\xEF\xBB\xBF'
Methods
Constants
UTF_8
public
string
UTF_8
= '\xEF\xBB\xBF'
UTF-8のBOM文字列
Methods
exists()
文字列にByte Order Markが存在するか確認します
public
static exists(string $value) : bool
Parameters
- $value : string
-
文字列を渡します
Return values
bool —存在する場合はtrueを、それ以外の場合はfalseを返します
remove()
文字列からByte Order Markを除去します
public
static remove(string $value) : string
Parameters
- $value : string
-
文字列を渡します
Return values
string —BOM文字を除去した文字列を返します