怎么得到 thinkphp 查詢結(jié)果的返回條數(shù)
1 回答

慕的地6264312
TA貢獻(xiàn)1817條經(jīng)驗(yàn) 獲得超6個(gè)贊
1 | $userCount = $User -> count (); |
如果有查詢條件的話
1 | $userCount = $User ->where( $where )-> count (); |
- 1 回答
- 0 關(guān)注
- 737 瀏覽
添加回答
舉報(bào)
0/150
提交
取消