protected function LdapQuery::csvToArray in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_query/LdapQuery.class.php \LdapQuery::csvToArray()
- 7 ldap_query/LdapQuery.class.php \LdapQuery::csvToArray()
1 call to LdapQuery::csvToArray()
- LdapQuery::__construct in ldap_query/
LdapQuery.class.php - Constructor Method.
File
- ldap_query/
LdapQuery.class.php, line 221 - Defines server classes and related functions.
Class
- LdapQuery
- LDAP Server Class.
Code
protected function csvToArray($string, $strip_quotes = FALSE) {
$items = explode(',', $string);
foreach ($items as $i => $item) {
$items[$i] = trim($item);
if ($strip_quotes) {
$items[$i] = trim($items[$i], '"');
}
}
return $items;
}