'Deleting a list of entries LDAP PHP

I want to be able to delete multiple different DNs (entries) from my LDAP server on a single call request by providing all the DNs as an array using PHP. How can I manage that? So far I only found a way to delete a single entry, so I can iterate over the array of the DNs and call make different requests to the server, for every DN. I need a better and more efficient way to delete multiple entries on one call to the LDAP server please.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source