5
我应该在调用Location:标头后调用exit()吗?
调用重定向函数标头后,是否应该调用exit? <?php // fileA $urlFailToGoTo = '/formerror.php'; if (sth) { header(sprintf("Location: %s", $urlFailToGoTo)); exit(); //should I call exit() here? or return? } ?> 谢谢
76
php