array (
)

<?php
// Plain cookie
setcookie('ordinary_cookie',
          
'you can acces it via javascript',
          
time() + 60*60*24*30,
          
'/demos/cookie',
          
$_SERVER['HTTP_HOST'], FalseFalse);

// HttpOnly cookie          
setcookie('httponly_cookie',
          
'you can NOT acces it via javascript',
          
time() + 60*60*24*30,
          
'/demos/cookie',
          
$_SERVER['HTTP_HOST'], FalseTrue);

$cookies var_export($_COOKIEtrue);          
          
echo <<<EOL
<input type="button" value="Показать куки" onclick="alert(document.cookie)"><br>
<hr><pre>$cookies</pre><hr>
EOL;


          
highlight_file(basename($_SERVER['PHP_SELF']));