public function confiscateAttr(&$attr, $key)
    {
        if (!isset($attr[$key])) {
            return null;
        }
        $value = $attr[$key];
        unset($attr[$key]);
        return $value;
    }
public function confiscateAttr(&$attr, $key)
    {
        if (!isset($attr[$key])) {
            return null;
        }
        $value = $attr[$key];
        unset($attr[$key]);
        return $value;
    }
public function confiscateAttr ( & $ attr , $ key ) { if ( ! isset ( $ attr [ $ key ] ) ) { return null ; } $ value = $ attr [ $ key ] ; unset ( $ attr [ $ key ] ) ; return $ value ; }
Retrieves and removes an attribute
@param array &$attr Attribute array to process (passed by reference)
@param mixed $key Key of attribute to confiscate
@return mixed
Retrieves and removes an attribute