]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | <?php\r |
2 | $items = array(array(\r | |
3 | 'id'=>1,\r | |
4 | 'order_id'=>1,\r | |
5 | 'product'=>'Chair',\r | |
6 | 'price'=>13.43,\r | |
7 | 'quantity'=>1\r | |
8 | ), array(\r | |
9 | 'id'=>2,\r | |
10 | 'order_id'=>1,\r | |
11 | 'product'=>'Stool',\r | |
12 | 'price'=>14.55,\r | |
13 | 'quantity'=>2\r | |
14 | ), array(\r | |
15 | 'id'=>3,\r | |
16 | 'order_id'=>1,\r | |
17 | 'product'=>'Table',\r | |
18 | 'price'=>44.2,\r | |
19 | 'quantity'=>1\r | |
20 | ),array(\r | |
21 | 'id'=>4,\r | |
22 | 'order_id'=>2,\r | |
23 | 'product'=>'Chair',\r | |
24 | 'price'=>13.43,\r | |
25 | 'quantity'=>3\r | |
26 | ), array(\r | |
27 | 'id'=>5,\r | |
28 | 'order_id'=>2,\r | |
29 | 'product'=>'Stool',\r | |
30 | 'price'=>14.55,\r | |
31 | 'quantity'=>6\r | |
32 | ), array(\r | |
33 | 'id'=>6,\r | |
34 | 'order_id'=>2,\r | |
35 | 'product'=>'Table',\r | |
36 | 'price'=>44.2,\r | |
37 | 'quantity'=>2\r | |
38 | ), array(\r | |
39 | 'id'=>7,\r | |
40 | 'order_id'=>3,\r | |
41 | 'product'=>'Chair',\r | |
42 | 'price'=>13.43,\r | |
43 | 'quantity'=>1\r | |
44 | ), array(\r | |
45 | 'id'=>8,\r | |
46 | 'order_id'=>3,\r | |
47 | 'product'=>'Stool',\r | |
48 | 'price'=>14.55,\r | |
49 | 'quantity'=>2\r | |
50 | ),array(\r | |
51 | 'id'=>9,\r | |
52 | 'order_id'=>4,\r | |
53 | 'product'=>'Table',\r | |
54 | 'price'=>44.2,\r | |
55 | 'quantity'=>1\r | |
56 | ), array(\r | |
57 | 'id'=>10,\r | |
58 | 'order_id'=>5,\r | |
59 | 'product'=>'Stool',\r | |
60 | 'price'=>14.55,\r | |
61 | 'quantity'=>2\r | |
62 | ), array(\r | |
63 | 'id'=>11,\r | |
64 | 'order_id'=>5,\r | |
65 | 'product'=>'Table',\r | |
66 | 'price'=>44.2,\r | |
67 | 'quantity'=>2\r | |
68 | ), array(\r | |
69 | 'id'=>12,\r | |
70 | 'order_id'=>6,\r | |
71 | 'product'=>'Chair',\r | |
72 | 'price'=>13.43,\r | |
73 | 'quantity'=>2\r | |
74 | ), array(\r | |
75 | 'id'=>13,\r | |
76 | 'order_id'=>6,\r | |
77 | 'product'=>'Stool',\r | |
78 | 'price'=>14.55,\r | |
79 | 'quantity'=>4\r | |
80 | ), array(\r | |
81 | 'id'=>14,\r | |
82 | 'order_id'=>6,\r | |
83 | 'product'=>'Table',\r | |
84 | 'price'=>44.2,\r | |
85 | 'quantity'=>1\r | |
86 | )\r | |
87 | );\r | |
88 | \r | |
89 | echo json_encode($items);\r | |
90 | ?> |