I have this kind of Array
Array
(
[year] => Array
(
[0] => 2019
)
[user] => [email protected]
)
The only thing I want is to get the usermail from this array.
it seems simple, but still doesn't work for me. I tried to get it like this:
foreach ($filter as $item) { echo $item['user'];}
but this goves mi only the first character of the email, so the result is 'u'.
echo $filter['user'];without the loop.