ircg_list
ircg_list — チャンネル内のトピック/ユーザの数を取得する
説明
bool ircg_list ( resource connection, string channel )ircg_list() は、channel の中のユーザ数を要求します。結果は、 ircg_set_file() あるいは ircg_set_current() で定義した出力に返されます。 成功した場合に TRUE を、失敗した場合に FALSE を返します。
例 999. ircg_list() の例
<?php
// サーバに接続します
$id = ircg_pconnect($nickname, $ip, $port);
// 出力をファイルに設定します
ircg_set_file($id, 'irc_output.html');
// チャンネルに参加します
if (!ircg_join($id, $channel)) {
echo "Cannot /join $channel<br />";
}
// list コマンドを送信します
ircg_list($id, $channel);
// 出力が返されるのを待ちます
sleep(5);
// 切断します
ircg_disconnect($id,'Bye World');
// すべてを出力します
readfile('irc_output.html');
?>
この例は、以下のような結果を出力します。
... Channel #channel has n users and the topic is 'Topic' End of LIST ...
ircg_set_file()、 ircg_set_current() および ircg_who() も参照ください。
Weblioに収録されているすべての辞書からircg_listを検索する場合は、下記のリンクをクリックしてください。

- ircg_listのページへのリンク