我有一个多维数组,我想让数组集只匹配我的特定值,现在我有一个列调用related_users,我需要一个语句,只有当这个数组的related_user值为1时才会获取这个数组值。
Array
(
[0] => Array
(
[id] => 1
[advertiser] => Hairvolution
[postdate] =>
[campaign_period] =>
[related_users] => 1
[reporting_period] =>
[Delivered Impressions] => 1439763
[Clicks] => 4124
[Click-Through Rate] => 0.29
)
[1] => Array
(
[id] => 4
[advertiser] =>
[postdate] =>
[campaign_period] =>
[related_users] => 2
[reporting_period] =>
[Delivered Impressions] =>
[Clicks] =>
[Click-Through Rate] =>
)
[2] => Array
(
[id] => 7
[advertiser] => maxlibin
[postdate] =>
[campaign_period] =>
[related_users] => 2
[reporting_period] =>
[Delivered Impressions] =>
[Clicks] =>
[Click-Through Rate] =>
)
[3] => Array
(
[id] => 8
[advertiser] => maxlibin
[postdate] =>
[campaign_period] =>
[related_users] => 1
[reporting_period] =>
[Delivered Impressions] =>
[Clicks] =>
[Click-Through Rate] =>
)
[4] => Array
(
[id] => 9
[advertiser] => maxlibin
[postdate] =>
[campaign_period] =>
[related_users] => 1
[reporting_period] =>
[Delivered Impressions] =>
[Clicks] =>
[Click-Through Rate] =>
)
}