Try this :
Function check_cookie() {
$caller = get_caller();
return $caller;
}
Function test() {
$var = check_cookie();
}
$var will be set to the value of $caller, if you correctly defined the get_caller function as a return function.
Hope that helps..
Regards,
-DigitalSolution