src/LdapTools/Object/LdapObject.php
protected function removeAttributeValue($value, $valueToRemove)
    {
        $valueToRemove = is_array($valueToRemove) ? $valueToRemove : [ $valueToRemove ];

        foreach ($valueToRemove as $remove) {
            if (is_array($value) && (($key = array_search($remove, $value)) !== false)) {
                unset($value[$key]);
            } elseif (!is_array($value) && ($value == $remove)) {
                $value = '';
            }
        }

        return $value;
    }
protected function removeAttributeValue($value, $valueToRemove)
    {
        $valueToRemove = is_array($valueToRemove) ? $valueToRemove : [ $valueToRemove ];

        foreach ($valueToRemove as $remove) {
            if (is_array($value) && (($key = array_search($remove, $value)) !== false)) {
                unset($value[$key]);
            } elseif (!is_array($value) && ($value == $remove)) {
                $value = '';
            }
        }

        return $value;
    }
protected function removeAttributeValue ( $ value , $ valueToRemove ) { $ valueToRemove = is_array ( $ valueToRemove ) ? $ valueToRemove : [ $ valueToRemove ] ; foreach ( $ valueToRemove as $ remove ) { if ( is_array ( $ value ) && ( ( $ key = array_search ( $ remove , $ value ) ) !== false ) ) { unset ( $ value [ $ key ] ) ; } elseif ( ! is_array ( $ value ) && ( $ value == $ remove ) ) { $ value = '' ; } } return $ value ; }
Given the original value, remove if it's present.

@param mixed $value
@param mixed $valueToRemove
@return mixed
Given the original value remove if it s present .