Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $data = [];
- foreach ($stmt as $row) {
- // $row[1] is the subscriber_id
- $data[$row[1]][] = $row[0]; // $row[0] is zone_name
- $data[$row[1]][] = $row[2]; // 4row[2] is the sum amount
- }
- var_dump($data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement