public function part($channelarray, $reason = null,
        $priority = SMARTIRC_MEDIUM
    ) {
        if (!is_array($channelarray)) {
            $channelarray = array($channelarray);
        }

        $channellist = implode(',', $channelarray);

        if ($reason !== null) {
            $this->send('PART '.$channellist.' :'.$reason, $priority);
        } else {
            $this->send('PART '.$channellist, $priority);
        }
        return $this;
    }
public function part($channelarray, $reason = null,
        $priority = SMARTIRC_MEDIUM
    ) {
        if (!is_array($channelarray)) {
            $channelarray = array($channelarray);
        }

        $channellist = implode(',', $channelarray);

        if ($reason !== null) {
            $this->send('PART '.$channellist.' :'.$reason, $priority);
        } else {
            $this->send('PART '.$channellist, $priority);
        }
        return $this;
    }
public function part ( $ channelarray , $ reason = null , $ priority = SMARTIRC_MEDIUM ) { if ( ! is_array ( $ channelarray ) ) { $ channelarray = array ( $ channelarray ) ; } $ channellist = implode ( ',' , $ channelarray ) ; if ( $ reason !== null ) { $ this -> send ( 'PART ' . $ channellist . ' :' . $ reason , $ priority ) ; } else { $ this -> send ( 'PART ' . $ channellist , $ priority ) ; } return $ this ; }
parts from one or more IRC channels with an optional reason

@param mixed $channelarray
@param string $reason
@param integer $priority message priority, default is SMARTIRC_MEDIUM
@return Net_SmartIRC
@api
parts from one or more IRC channels with an optional reason