setcookie

PHP 4, PHP 5, PHP 7, PHP 8
setcookie - Send a cookie
Manual
Code Examples

Example #1 setcookie and arrays

Result: three : cookiethree two : cookietwo one : cookieone
PHP Version:

Example #2

PHP Version:

Example #3 setcookie send example

Some examples follow how to send cookies:

PHP Version:

Example #4 setcookie delete example

PHP Version: