-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
90 lines (87 loc) · 2.37 KB
/
test.php
File metadata and controls
90 lines (87 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
require_once 'Array_Manipulation.php';
$data = [
[
"First Name" => "Denis",
"Surname" => "Oliveira",
"Company" => "RTDE LLP",
"Street" => "12, Kapel Street",
"City" => "Limerick",
"County" => "Co. Limerick",
"Country" => "Ireland"
],
[
"First Name" => "Mickey",
"Surname" => "Murphy",
"Company" => "Soluction LLP",
"Street" => "9127 Cabra",
"City" => "Galway",
"County" => "Co. Galway",
"Country" => "Ireland"
],
[
"First Name" => "Boris",
"Surname" => "O'Connel",
"Company" => "Associates",
"Street" => "Ap 3883 Mantra. Street",
"City" => "Galway",
"County" => "Co. Galway",
"Country" => "Ireland"
],
[
"First Name" => "Madison",
"Surname" => "Oliveira",
"Company" => "Industries",
"Street" => "73 Roast Roast",
"City" => "Galway",
"County" => "Co. Galway",
"Country" => "Ireland"
],
[
"First Name" => "Lemon",
"Surname" => "Juice",
"Company" => "OC PC",
"Street" => "Ap #33 Temple Bar",
"City" => "Dublin",
"County" => "Co. Dublin",
"Country" => "Ireland"
],
[
"First Name" => "Rigel",
"Surname" => "Murphy",
"Company" => "Foundation",
"Street" => "Box 730, JarjarBin St.",
"City" => "Dublin",
"County" => "Co. Dublin",
"Country" => "Ireland"
],
[
"First Name" => "Sava",
"Surname" => "Clava",
"Company" => "Limited",
"Street" => "P.O. Box 1, 22 Clare St.",
"City" => "Limerick",
"County" => "Co. Limerick",
"Country" => "Ireland"
],
[
"First Name" => "Java",
"Surname" => "Script",
"Company" => "Consulting",
"Street" => "123 Vinn Rd.",
"City" => "Limerick",
"County" => "Co. Limerick",
"Country" => "Ireland"
],
[
"First Name" => "Oreo",
"Surname" => "Bolacha",
"Company" => "ACDC Limited",
"Street" => "P.O. Box 12312312, 11 Za Street",
"City" => "Limerick",
"County" => "Co. Limerick",
"Country" => "Ireland"
]
];
$array_manipulation = new Array_Manipulation($data);
var_dump($array_manipulation->groupArray(['Surname', 'City']));