WC_Product_CSV_Importer::remove_utf8_bom
Remove UTF-8 BOM signature.
Method of the class: WC_Product_CSV_Importer{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->remove_utf8_bom( $string );
- $string(string) (required)
- String to handle.
WC_Product_CSV_Importer::remove_utf8_bom() WC Product CSV Importer::remove utf8 bom code WC 10.6.2
protected function remove_utf8_bom( $string ) {
if ( 'efbbbf' === substr( bin2hex( $string ), 0, 6 ) ) {
$string = substr( $string, 3 );
}
return $string;
}