LdapTools\Utilities\LdapUtilities::isBinary PHP Method

isBinary() public static method

Check if a string contains non-printable, and likely binary, data. There is no easy way to do this, as there can really only be a best effort attempt to detect it.
public static isBinary ( string $value ) : boolean
$value string
return boolean
    public static function isBinary($value)
    {
        return !preg_match('//u', $value);
    }