I have a result from a query like this : (IN PHP, I assigned to $arr_permasalahan)
+--------------+---------------------+
| total_detail | nama_detail |
+--------------+---------------------+
| 2 | Create Email Baru |
| 1 | Create Login Novell |
+--------------+---------------------+
Now I want to implode them, like this :
Create Email Baru : 2 pcs,
Create Login Novel : 1 pcs
So, I decided it to use array_column like this :
$output = implode("\n", array_column($arr_permasalahan, 'nama_detail'));
I just get
"Create Email Baru\nCreate Login Novell"
Please advise.
CONCAT(nama_detail, ' : ', total_detail, ' pcs')and then print it as you need.