The use of cookies is done through the $_COOKIE array. This array is based on cookies automatically sent to that page. We use the following code to access the cookie we created above, which shows how simple and straightforward it is:

echo $_COOKIE['cookie'];

As a continuation of the above example on the screen, the screen will print out salute world.