write this code in the console and run 🙂
Hey fellows! How you doin! Today we want to talk about dates on php.
But before that we should know about GMT timezone and Unix Timestamp.
GMT timezone : it’s that the time of Greenwich is the center of the world clock , and the time of every other place is measured comparing to Greenwich . for example time in Tehran is GMT+3:30 which means it’s 3:30 h ahead of the time of Greenwich .
session_unset() unsets all session variables ($_SESSION)
session_start(); $_SESSION['name']="Mehdi"; echo $_SESSION['name']; session_unset(); echo $_SESSION['name'];
Output: Mehdi Notice: Undefined index: name on line 4