Utils/StringUtils.php
/**
     * Remove the byte order mark from a string if applicable
     *
     * @param string $string
     * @return string
     */
Remove the byte order mark from a string if applicable
@param string $string
@return string
Remove the byte order mark from a string if applicable @param string $string @return string
public static function removeBom($string)
    {
        if (substr($string, 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf)) {
            $string = substr($string, 3);
        }
        return $string;
    }
public static function removeBom ( $ string ) { if ( substr ( $ string , 0 , 3 ) == pack ( 'CCC' , 0xef , 0xbb , 0xbf ) ) { $ string = substr ( $ string , 3 ) ; } return $ string ; }
Remove the byte order mark from a string if applicable
 @param string $string
 @return string
Remove the byte order mark from a string if applicable @param string $string @return string