i have a cookie called $userinfo
the problem is when i pass the same cookie in to two function i get two diffrent values.
eg:
function stats($userinfo)
{
getusrinfo($userinfo);
echo $userinfo[0];
}
function stats2($userinfo)
{
getusrinfo($userinfo);
echo $userinfo[0];
}
stats($userinfo); // display 2
stats2($userinfo); // display 9
the both function should return the same value cuz same variable $userinfo is passed, but it doesn't..... why???
the function getusrinfo() just decodes the cokkie and returns arrow called $userinfo
please please help
many thanks