WC_Product_CSV_Importer::remove_utf8_bom( string $string )

Remove UTF-8 BOM signature.


Description Description


Parameters Parameters

$string

(Required) String to handle.


Top ↑

Return Return

(string)


Top ↑

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;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.