I have the following code in a script:
print_r prints the contents of the array correctly, but the foreach loop prints out "Array" for the valr of $myval each time... what am I doing wrong? This script had been working for 2 years until he provided updated php to version 4.3.10.
Code:
print "<pre>";
print_r ($landscape);
print "</pre>";
foreach($landscape as $myval)
{
print $myval."<br>";
}
print_r prints the contents of the array correctly, but the foreach loop prints out "Array" for the valr of $myval each time... what am I doing wrong? This script had been working for 2 years until he provided updated php to version 4.3.10.