src/LdapTools/Utilities/LdapUtilities.php
public static function getAliasAndAttribute($attribute)
    {
        $alias = null;

        if (strpos($attribute, '.') !== false) {
            $pieces = explode('.', $attribute, 2);
            $alias = $pieces[0];
            $attribute = $pieces[1];
        }
        
        return [$alias, $attribute];
    }
public static function getAliasAndAttribute($attribute)
    {
        $alias = null;

        if (strpos($attribute, '.') !== false) {
            $pieces = explode('.', $attribute, 2);
            $alias = $pieces[0];
            $attribute = $pieces[1];
        }
        
        return [$alias, $attribute];
    }
public static function getAliasAndAttribute ( $ attribute ) { $ alias = null ; if ( strpos ( $ attribute , '.' ) !== false ) { $ pieces = explode ( '.' , $ attribute , 2 ) ; $ alias = $ pieces [ 0 ] ; $ attribute = $ pieces [ 1 ] ; } return [ $ alias , $ attribute ] ; }
Given an attribute, split it between its alias and attribute. This will return an array where the first value
is the alias and the second is the attribute name. If there is no alias then the first value will be null.

ie. list($alias, $attribute) = LdapUtilities::getAliasAndAttribute($attribute);

@param string $attribute
@return array
Given an attribute split it between its alias and attribute . This will return an array where the first value is the alias and the second is the attribute name . If there is no alias then the first value will be null .