There is an associative array. You need to select specific values by coincidence and I would like to do all this without a loop, since arrays can be large, tell me how this can be done? For example:
0 =>[ 'user'=> 'ivan' 'amount' => 50 'date' => '2019' ], 1=> [ 'user'=> 'dima' 'amount' => 10 'date' => '2019' ], 2=> [ 'user'=> 'ivan' 'amount' => 11 'date' => '2019' ], I need to leave for example ivan and in order to get this at the output:
0 =>[ 'user'=> 'ivan' 'amount' => 50 'date' => '2019' ], 1=> [ 'user'=> 'ivan' 'amount' => 11 'date' => '2019' ],