$cookie_val = $_COOKIE['vbulletin_collapse']; echo $cookie_val."<br>\n"; $cookie_arr = explode("\n",$cookie_val); print_r($cookie_arr);