
February 19th, 2000, 06:03 AM
|
|
Apprentice Deity
|
|
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237

Time spent in forums: 4 m 8 sec
Reputation Power: 17
|
|
|
Check out explode() and split() in the manual. As for a delimiter I wouldn't use % as that's used in url coding to delimit an encoded character. Pipe's (|) are good, usually.
However, you might want to use serialize()/unserialize() as an alternative. Store everything in a 2d array ($site[0][name], $site[0][url], etc) then $mycookie=serialize($site) and put $mycookie in the cookie. When you remove it just $site=unserialize($mycookie). Then you have no limits on cookies and only have to store one.
|