Utils/StringUtils.php
/**
     * Figures out whether a string is binary or not
     *
     * @param string $string
     * @return bool
     */
Figures out whether a string is binary or not
@param string $string
@return bool
Figures out whether a string is binary or not @param string $string @return bool
public static function isBinary($string)
    {
        $string = str_replace(array("\n", "\r", "\t"), '', $string);
        return !ctype_print($string);
    }
public static function isBinary ( $ string ) { $ string = str_replace ( array ( " \n " , " \r " , " \t " ) , '' , $ string ) ; return ! ctype_print ( $ string ) ; }
Figures out whether a string is binary or not
 @param string $string
 @return bool
Figures out whether a string is binary or not @param string $string @return bool