Jump to content

about vardump and cookie


masterinex

Recommended Posts

<?php

$a = 1;

$a = $a + 1;


$expiry = new DateTime('+1year') ;
setcookie( 'language' , 'EN-GB', $expiry->getTimestamp());

var_dump($_COOKIE);

echo "Hello world!";
?>

When i run this in phpstorm , i am getting this output:

 

C:\xampp\htdocs\Sandbox\index.php:11:

array (size=1)

'Phpstorm-aa4c01d' => string 'cc5eb5a0-3c37-42ff-8538-e849091f48c8' (length=36)

Hello world!

 

 

how come var_dump does not give me the language and 'EN-GB' as output ?

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.