<?php
foreach ($array['response']['data']['Offers'] as $arr) {
$gegevens = array(
$arr['Offer']['id'],
$arr['Offer']['name'],
$arr['Advertiser']['company'],
$arr['Offer']['advertiser_id'],
$arr['Offer']['offer_url'],
$arr['Offer']['default_payout'],
$arr['Offer']['expiration_date']
);
echo '<tr>';
foreach ($gegevens as $value) {
echo "<td>{$value}</td>";
}
echo "</tr>\n";
}
?>
这是我的代码。如何在 中搜索两种值foreach($array['response']['data']
?
它必须是foreach($array['response']['data'][**Offers**]
并且也是foreach($array['response']['data'][**Advertisers**]
。
我需要这个,以便我可以回显$arr['**Offer**']['name']
,$arr['**Advertiser**'] ['company']
有人可以帮我弄这个吗?