I made this function and the problem i have is that the Variavle $Time is not available to the whole program and what i mean by that is the function runs but doesn't set the variable to the whole thing and i have tested the function by doing echos.
Is there a way to set the variable in the function usable out side of the function.
function Times()
{
if (time() < mktime(12,00,00))
{
$Time = 'AM';
}
else
{
$Time = 'PM';
}
}