public static function escape($value, $ignore = null, $flags = null)
    {
        if (! function_exists('ldap_escape')) {
            // Bail out, can't work our magic!
            trigger_error('ldap_escape() is only available in PHP 5.6 or newer', E_USER_ERROR);
        }

        return ldap_escape($value, $ignore, $flags);
    }
public static function escape($value, $ignore = null, $flags = null)
    {
        if (! function_exists('ldap_escape')) {
            // Bail out, can't work our magic!
            trigger_error('ldap_escape() is only available in PHP 5.6 or newer', E_USER_ERROR);
        }

        return ldap_escape($value, $ignore, $flags);
    }
public static function escape ( $ value , $ ignore = null , $ flags = null ) { if ( ! function_exists ( 'ldap_escape' ) ) { // Bail out, can't work our magic! trigger_error ( 'ldap_escape() is only available in PHP 5.6 or newer' , E_USER_ERROR ) ; } return ldap_escape ( $ value , $ ignore , $ flags ) ; }
Escape a string for use in an LDAP filter or DN

`$flags` may be one of: `Ldap::ESCAPE_FILTER`, `Ldap::ESCAPE_DN`

@since  PHP 5.6
@param  string   $value  The value to escape
@param  string   $ignore Characters to ignore when escaping
@param  integer  $flags  The context the escaped string will be used in
@return string           Returns the escaped string
Escape a string for use in an LDAP filter or DN