I have arrays like this:
$actions = array(
array(
'type' => 'checkbox',
'id' => 'f0',
'is_active' => 1
),
array(
'type' => 'checkbox',
'id' => 'f1',
'is_active' => 0
),
array(
'type' => 'radio',
'id' => 'f2',
'is_active' => 0
),
array(
'type' => 'checkbox',
'id' => 'f3',
'is_active' => 1
),
array(
'type' => 'text',
'id' => 'f4',
'is_active' => 1
),
array(
'type' => 'checkbox',
'id' => 'f5',
'is_active' => 0
),
array(
'type' => 'checkbox',
'id' => 'f6',
'is_active' => 1
)
);
so i need to extract the arrays that has type = 'checkbox' and is_active = 1 only without any "for loop" ..
Any good solution ?