$array = [
[
'id' => 1,
'name' => 'Jhon doe',
'city' => 'New York',
'Gender' => 'male'
],
...
];
We have a simple 2D Array
In many cases we got an array of data without using a database, A static Array or even non-parsed data as a Json response... Then we have to filter it!
2D : array( array(),array(),array()... );