<?php setcookie("mycookie[]","its just cookie test!!!","the second"); echo $mycookie[0]; echo $mycookie[1]; ?>