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

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

        if ($key !== null) {
            foreach ($channelarray as $idx => $value) {
                $this->send('JOIN '.$value.' '.$key, $priority);
            }
        } else {
            foreach ($channelarray as $idx => $value) {
                $this->send('JOIN '.$value, $priority);
            }
        }

        return $this;
    }
public function join($channelarray, $key = null, $priority = SMARTIRC_MEDIUM)
    {
        if (!is_array($channelarray)) {
            $channelarray = array($channelarray);
        }

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

        if ($key !== null) {
            foreach ($channelarray as $idx => $value) {
                $this->send('JOIN '.$value.' '.$key, $priority);
            }
        } else {
            foreach ($channelarray as $idx => $value) {
                $this->send('JOIN '.$value, $priority);
            }
        }

        return $this;
    }
public function join ( $ channelarray , $ key = null , $ priority = SMARTIRC_MEDIUM ) { if ( ! is_array ( $ channelarray ) ) { $ channelarray = array ( $ channelarray ) ; } $ channellist = implode ( ',' , $ channelarray ) ; if ( $ key !== null ) { foreach ( $ channelarray as $ idx => $ value ) { $ this -> send ( 'JOIN ' . $ value . ' ' . $ key , $ priority ) ; } } else { foreach ( $ channelarray as $ idx => $ value ) { $ this -> send ( 'JOIN ' . $ value , $ priority ) ; } } return $ this ; }
Joins one or more IRC channels with an optional key.

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