PHP-我应该在调用Location:Header之后调用Exit()吗?
调用重定向函数标头后,是否应该调用Exit?
<?php // fileA $urlFailToGoTo = '/formerror.php'; if (sth) { header(sprintf("Location: %s", $urlFailToGoTo)); exit(); //should I call exit() here? or return? } ?>
谢谢
守候你守候我
牧羊人nacy
相关分类