Skip to content

Instantly share code, notes, and snippets.

View vooxo's full-sized avatar

Nemanja Vukosav vooxo

  • Novi Sad, Serbia
View GitHub Profile
@vooxo
vooxo / convertLdapResult.php
Created November 3, 2017 09:33
Make readable array from ldap_get_entries() result in PHP
/**
* Convert LDAP resulting array to clean entries array with attributes and values
*
* @param $resultArray
* @return array
*/
public function convertLdapResult($resultArray)
{
$entries = array();
foreach ($resultArray as $resIdx => $resEntry) {