【发布时间】:2011-04-02 23:51:08
【问题描述】:
调用重定向函数头后,是否应该调用exit?
<?php // fileA
$urlFailToGoTo = '/formerror.php';
if (sth)
{
header(sprintf("Location: %s", $urlFailToGoTo));
exit(); //should I call exit() here? or return?
}
?>
谢谢
【问题讨论】:
标签: php