امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
For a table having data as the following:
I'm using the following query and grouping by
PHP:
This is giving me the following output:
Code:
Read more
| user_id |
|---|
| 2 |
| 4 |
| 1 |
| 5 |
| 6 |
| 3 |
| 1 |
| 6 |
I'm using the following query and grouping by
user_idPHP:
کد:
$d = \XF::finder('Asprin\FB:Foo')->fetch();
$grouped = $d->groupBy('user_id');
\XF::dump($grouped);
This is giving me the following output:
Code:
کد:
array:6 [▼
6 => array:2 [▶]
5 => array:1 [▶]...
Read more
