关于onConnect/onReceive/onClose顺序
计算符合条件的记录数量。
function Model::count(array $params);
使用实例
$model->count(array(
'where' => array(
'id > 5',
"name='test' ",
),
"group"=>"test_id",
'level' => 100,
));
- 调用成功返回数字
- 调用失败返回false