public function get()
    {
        $components = [];

        // We'll go through each component type and assemble its RDN.
        foreach ($this->components as $component => $values) {
            array_map(function ($value) use ($component, &$components) {
                // Assemble the component and escape the value.
                $components[] = sprintf('%s=%s', $component, ldap_escape($value, '', 2));
            }, $values);
        }

        return implode(',', $components);
    }
public function get()
    {
        $components = [];

        // We'll go through each component type and assemble its RDN.
        foreach ($this->components as $component => $values) {
            array_map(function ($value) use ($component, &$components) {
                // Assemble the component and escape the value.
                $components[] = sprintf('%s=%s', $component, ldap_escape($value, '', 2));
            }, $values);
        }

        return implode(',', $components);
    }
public function get ( ) { $ components = [ ] ; // We'll go through each component type and assemble its RDN. foreach ( $ this -> components as $ component => $ values ) { array_map ( function ( $ value ) use ( $ component , & $ components ) { // Assemble the component and escape the value. $ components [ ] = sprintf ( '%s=%s' , $ component , ldap_escape ( $ value , '' , 2 ) ) ; } , $ values ) ; } return implode ( ',' , $ components ) ; }
Returns the complete distinguished name by assembling the RDN components.

@return string
Returns the complete distinguished name by assembling the RDN components .