I can't create cookie!

I think if the intent is to var_dump to a string, var_export would be the better choice
http://php.net/manual/en/function.var-export.php