I have the following input array, I would like to flatten the array to evaluate true or false conditions.
array (
'all' =>
array (
'0' =>
array (
0 => 'true')
'1' =>
array (
0 => 'true')
'2' =>
array (
0 => 'true')
),
array (
'any' =>
array (
'0' =>
array (
0 => 'true')
'1' =>
array (
0 => 'false')
))
)
I would like to get the output in the following format.
Output Array:
all =>(
true,
true,
true,
any => (true,
false)
)