WC_Product_CSV_Importer::remove_utf8_bom( string $string )
Remove UTF-8 BOM signature.
Description Description
Parameters Parameters
- $string
-
(Required) String to handle.
Return Return
(string)
Source Source
File: includes/import/class-wc-product-csv-importer.php
protected function remove_utf8_bom( $string ) { if ( 'efbbbf' === substr( bin2hex( $string ), 0, 6 ) ) { $string = substr( $string, 3 ); } return $string; }