Sindbad~EG File Manager

Current Path : /home/infinitibizsol/www/wp-content/plugins/wpforms/src/Helpers/
Upload File :
Current File : /home/infinitibizsol/www/wp-content/plugins/wpforms/src/Helpers/File.php

<?php

namespace WPForms\Helpers;

/**
 * Class File.
 *
 * @since 1.6.5
 */
class File {

	/**
	 * Remove UTF-8 BOM signature if it presents.
	 *
	 * @since 1.6.5
	 *
	 * @param string $string String to process.
	 *
	 * @return string
	 */
	public static function remove_utf8_bom( $string ) {

		if ( strpos( bin2hex( $string ), 'efbbbf' ) === 0 ) {
			$string = substr( $string, 3 );
		}

		return $string;
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists