PHP encapsulates a multi-function jump function that supports HTML, JS, and PHP redirection. PHP redirection, that is, redirecting a browser to a specified URL, is a common function. This feature also has some detailed requirements, such as waiting for seconds to jump, with no need to redirect Cr PHP, that is, redirecting the browser to the specified URL, is a very common function. This feature also has some detailed requirements, such as the number of seconds to wait for the jump, the use of JavaScript to achieve the jump, and so on. The following jump method takes into account a lot of parameters and can be used in specific projects.
<? Php/*** Redirect the browser to the specified URL ** @ param string $ url the url to be redirected * @ param int $ How many seconds after delay waits * @ param bool $ js indication whether to return the JavaScript code for redirect * @ param bool $ jsWrapped indicates whether to use it when returning JavaScript code
';} If ($ return) {return $ out;} echo $ out; exit ;}?>
Http://www.bkjia.com/PHPjc/825383.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/825383.htmlTechArticlePHP redirection, that is, redirecting a browser to a specified URL, is a common feature. This feature also has some detailed requirements, such as the number of seconds to wait for the jump, with no need to reset cr...