php - Return value after header -
i use header allow user download file when clicks on button. below code in function.
header('content-disposition: attachment; filename='.date("ymd",$date).".removethis"); echo $data; exit(); return true;
but dont catch return value when calling function. possible have exit() , yet have return value function?
the function exit()
terminate program immediately. no code execution expected after exit()
;
exit(); // program terminates // not executed return true;