Possible Duplicate:
foreach with three variables add
i have following code i want to use multiple array in foreach. please note that i need $yourSiteContent[] as it is.
foreach ($pieces as $id and $pieces1 as $id_date) {
$yourSiteContent[] = array('permalink' => $id, 'updated' => $id_date);
}
as you can see i have two arrays ($pieces and $pieces1), please check a loop and let me know where i am doing mistake.
$pieces1 contains dates and $pieces contains urls.
thanks for your help.