You are here

function ldap_help_display in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_help/ldap_test_script/functions.inc \ldap_help_display()
  2. 7.2 ldap_help/ldap_test_script/functions.inc \ldap_help_display()
1 call to ldap_help_display()
test.php in ldap_help/ldap_test_script/test.php

File

ldap_help/ldap_test_script/functions.inc, line 137

Code

function ldap_help_display($title, $value = NULL) {
  if (is_array($value)) {
    echo "\n" . $title;
    foreach ($title as $subtitle => $subvalue) {
      ldap_help_display($subtitle, $subvalue);
    }
  }
  if (!$title && $value) {
    echo "\n" . $value;
  }
  elseif ((int) $title === $title) {
    echo "\n" . $value;
  }
  else {
    echo "\n" . "{$title}: {$value}";
  }
}