downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

http_date> <http_inflate
Last updated: Fri, 18 Sep 2009

view this page in



add a note add a note User Contributed Notes
http_build_cookie
jonathan dot aquino at gmail dot com
21-Mar-2009 06:46
Note that you must cast the result of http_parse_cookie to an array before passing it to http_build_cookie (see http://bugs.php.net/bug.php?id=47740 ).

Example:

<?php
$cookie
= http_parse_cookie('RMID=2dab5fc9296749c2f28ec0b7; expires=Saturday, 20-Mar-2010 01:34:06 GMT; path=/; domain=.example.com');
var_dump(http_build_cookie((array)$cookie));
?>

http_date> <http_inflate
Last updated: Fri, 18 Sep 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites