- var_dump: documentation ( source)
- header: documentation ( source)
<?php
try {
header('Content-Type: text/html; charset=utf-8');
header('Set-Cookie: track=ABC');
} catch (Exception $e) {
// Catch the exception
}
finally
{
var_dump($_COOKIE);
}
?>