2
Contributors
1
Reply
3
Views
11 Years
Discussion Span
Last Post by paradox814
0

can you explain a little more of how you want your cookie to come back
$cookie[0] = 1536;
$cookie[1] = 1389618816;
$cookie[2] = 29709504;
is that what you mean?

if so look at the explode function
http://php.he.net/manual/en/function.explode.php

$cookie = explode(" ", $_COOKIE[someCookie']);

this will split into array where all the items are seperated by a space

$cookie = explode("\n", $_COOKIE[someCookie']);

whis will use the end of line character, or even use \r\n for linux computers

if you want to break it up into a named array use the list function
http://php.he.net/manual/en/function.list.php

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.