Skip to content

Instantly share code, notes, and snippets.

Avatar

Nemanja Vukosav vooxo

  • Novi Sad, Serbia
View GitHub Profile
@vooxo
vooxo / convertLdapResult.php
Created Nov 3, 2017
Make readable array from ldap_get_entries() result in PHP
View convertLdapResult.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) {