I have a simple php function. however, it fails every time, no matter what.
function for determining tomato pic
echo "$info[2]";
function tomato()
{
if(intval($info[2]) > 60)
return "fresh";
else if(intval($info[2]) < 60)
return "rotten";
}
it echo 95 on the page but then returns "rotten". any idea whats up with this?