Introduction
PHP runs your code from top to bottom each time you visit a page. After the script finishes, all temporary data is cleared to keep things fresh and fast.
When you want to run a web page that shows updated information every time someone visits.
When you need to make sure old data does not stick around between page loads.
When you want to understand why variables lose their values after the page reloads.