我有一個多維數組,我想獲取數組集只匹配我的具體值,現在我有一個列調用related_users,我需要一個語句,將獲得此數組值當這個數組的related_user值爲1PHP多維數組按特定值
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] =>
)
}
不要說 「我需要一個說法」,更好地告訴我們,你已經嘗試什麼。 – Antony 2013-04-24 05:22:03
你可以給一個「我想讓數組只匹配我的具體數值」的例子嗎? – bestprogrammerintheworld 2013-04-24 05:24:32