title: http_redirect() vs header()
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/14353130/php-header-location-vs-php-redirect">php header location vs php_redirect</a>  </p>
  </blockquote>
  
  
  
  <p>Throughout the years I've been using PHP I've always redirected to another URL via the <code>header('Location: example.com')</code> function. Today while browsing php.net I've noticed there is a function specifically for redirection called <code>http_redirect()</code></p>
  
  <p>Are there any benefits to using <code>http_redirect()</code> to <code>header()</code> or vice versa?</p>
  
  <hr>
  
  <p>References: </p>
  
  <ol>
  <li><a href="http://www.php.net/manual/en/function.header.php" rel="nofollow noreferrer">http://www.php.net/manual/en/function.header.php</a></li>
  <li><a href="http://php.net/manual/en/function.http-redirect.php" rel="nofollow noreferrer">http://php.net/manual/en/function.http-redirect.php</a></li>
  </ol>