This question is an exact duplicate of:
I'm trying to filter the array in PHP. Please see my array:
Array
(
[0] => Array
(
[date_start_month_name] => January
[approved] => Accepted: yes
)
[1] => Array
(
[date_start_month_name] => March
[approved] => Accepted: yes
)
[2] => Array
(
[date_start_month_name] => March
[approved] => Accepted: yes
)
[3] => Array
(
[date_start_month_name] => April
[approved] => Accepted: yes
)
)
I want to filter the array using month name, for example: March and get something like this:
Array
(
[0] => Array
(
[date_start_month_name] => March
[approved] => Accepted: yes
)
[1] => Array
(
[date_start_month_name] => March
[approved] => Accepted: yes
)
)
How can I do that? Thanks in advance for any help. Best!