Say i have an array like this one:
array [
0 => array [
'id' => 1,
'name' => 'John',
'address' => 'Some address 1'
'city' => 'NY'
],
1 => array [
'id' => 2,
'name' => 'Jack',
'address' => 'Some address 2'
'city' => 'NY'
]
…
10 => array [ ... ]
]
How can i filter this array so that i keep structure but only have keys id and name and their values?