hello
i have the following script:
if (count($now_ten) == 0) {
$now_ten = array("Below is a list of all new topten entries");
} else array_push($now_ten, $name);
$response2 = "<u>Array contains:</u></br>";
foreach ($now_ten as $value) {
$response2 .= $value . "<br>";
basically checks if an array exsists and if it doesnt then pushes a new value in the end of the array? yet the foreach statement seems to only print out the last value [seems like the array_push statement erases the last value?]
any ideas would be helpfull