今天試著透過 ldap_mod_replace 更新 LDAP 中的資料 <?php $info [ 'mail' ] = ( empty ( $email )) ? array ( "" ) : array ( $email ); $info [ 'telephonenumber' ] = ( empty ( $line_token )) ? array () : array ( $line_token ); if ( ldap_mod_replace ( $ldap_conn , $rdn , $info )) ?> 發現 mail 欄位跟 telephonenumber 欄位對於空白資料給法不一樣,如上