I have two full arrays, of about 10 values each. I have combining those arrays and displaying them through this line of code.
foreach(array_combine($hpictures, $highschools) as $pictures => $hschool)
and echoing them out into a css format.
The array's combine and code works perfectly the only problem is that for some reason it is only displaying of the values in the array, and not going through and displaying all 10. I am wondering if the foreach or array_combine is the reason for this.
Edits:
if(!empty($highschools)){
echo "<h3>High School Division</h3>";
echo "<ul>";
foreach(array_combine($hpictures, $highschools) as $pictures => $hschool){
echo "<li><img src='$pictures'/><a href='./schoolpage.php?school=$hschool'><strong>$hschool</strong></a></li>";
}
echo "</ul>";
}
Thanks for any help, and hope this is helpful to others as well.
print_r(array_combine($hpictures, $highschools));
– Dagon Feb 15 '13 at 2:37