void Gateway::sendToAll(string $send_data [, array $client_id_array = null [, array $exclude_client_id = null [, bool $raw = false]]]);
看不懂。。。。
有那么難理解嗎?
參數(shù)
$send_data
要發(fā)送的數(shù)據(jù)(字符串類型),就是你要推送的數(shù)據(jù)唄.
$client_id_array
指定向哪些client_id發(fā)送,如果不傳遞該參數(shù),則是向所有在線客戶端發(fā)送 $send_data 數(shù)據(jù) ,這個也很好理解呀,就是給誰推送,不傳就是給所有人.
$exclude_client_id
client_id組成的數(shù)組。$exclude_client_id數(shù)組中指定的client_id將被排除在外,不會收到本次發(fā)的消息.
這個就是指定不給哪些人推送唄
Gateway::sendToAll($send_data, [] , [$client_id]);我是這樣發(fā)的,但是會報錯;
我想知道書寫格式,不是參數(shù)解釋 大佬