<?php
/*
bool setcookie ( string $name [, string $value = "" [, int $expire = 0
[, string $path = ""
[, string $domain = ""
[, bool $secure = false
[, bool $httponly = false ]]]]]] )
*/
// expire at the end of the session, when the browser closes
setcookie("cookie[one]", "cookie_one");
setcookie("cookie[two]", "cookie_two");
setcookie("cookie[three]", "cookie_three");
?><html>
<body>
<?php
echo '<pre>' . print_r($_COOKIE, 1) . "</pre>";
?>
</body>
</html>
<?php
/*
run:
Array
(
[user_name] => Erin Baron
[cookie] => Array
(
[three] => cookie_three
[two] => cookie_two
[one] => cookie_one
)
)
*/
?>