What is the difference between using "forwarding" and "header" for page redirection in PHP?

When redirecting a user to a new page in PHP, using "forwarding" typically involves sending a header with the new URL, while using "header" involves sending an HTTP header with a status code for redirection. The main difference is that "forwarding" is more commonly used in frameworks like Laravel for internal redirects, while "header" is used for external redirects.

// Using "forwarding" for internal redirection
header('Location: newpage.php');

// Using "header" for external redirection
header('Location: https://www.example.com');