What are the different methods in PHP to perform automatic redirection?
When we want to automatically redirect users from one page to another in PHP, we can use different methods such as using the header() function, meta refresh tag, or JavaScript. These methods allow us to redirect users seamlessly without requiring any user interaction.
// Using header() function for automatic redirection
header("Location: new_page.php");
exit;