Zend_Ldif_Encoder Zend_Ldif_Encoder API Method Description array decode(string $string) Decodes the string $string into an array of LDIF items. string encode(scalar|array|Zend_Ldap_Node $value, array $options) Encode $value into a LDIF representation. $options is an array that may contain the following keys: 'sort' Sort the given attributes with dn following objectClass and following all other attributes sorted alphabetically. TRUE by default. 'version' The LDIF format version. 1 by default. 'wrap' The line-length. 78 by default to conform to the LDIF specification.