How to reload page in php?

Hello friends, today I will tell you through experts php tutorial how you can reload a page Using php program. So let’s try to understand step to step with example.

Example 1: if you can reload a page without any second use this example.


Example 2: if you can reload a page with 2 seconds use this example.

header("Refresh:2"); // Refreshes after 2 seconds

Example 3: if you can redirect another page with refresh use this example

//If you need to redirect it to another page
header("Refresh:0; url=page2.php");