title: php ldap_get_values() for more than 1 value
body: <p>I am using the <code>ldap_get_values</code> function in a script that uses LDAP authentication. </p>
  
  <p>My question is:</p>
  
  <p>Is it possible to pull more than one <code>value</code> (as the name suggests 'values') in one <code>query</code>? Or does it have to be  looped over (which to me doesnt really make sense as it would mean querying AD multiple times which would be inefficient?</p>
  
  <p>My current function is this:</p>
  
  <pre><code>ldap_get_values($ds, $entry, "mail"); 
  </code></pre>
  
  <p>Which pulls the mail value.</p>