title: Using explode with setcookie to set one cookie with multiple name and values
body: <p>I really not getting how to do this </p>
  
  <p>From <a href="http://php.net/manual/en/function.setcookie.php" rel="noreferrer">PHP Manual</a></p>
  
  <blockquote>
    <p>Cookies names can be set as array names and will be available to your
    PHP scripts as arrays but separate cookies are stored on the user's
    system. </p>
  </blockquote>
  
  <p>This is okay to me and I got and could use like below </p>
  
  <pre><code>setcookie("cookie[three]", "cookiethree");
  setcookie("cookie[two]", "cookietwo");
  </code></pre>
  
  <p>But this method will create multiple cookies and that is I don't want</p>
  
  <p>PHP manual also says</p>
  
  <blockquote>
    <p>Consider explode() to set one cookie with multiple names and
    values.</p>
  </blockquote>
  
  <p>But I did not get how to use explode to set one cookie with multiple names and values?</p>
  
  <p>Please someone explain this.</p>
  
  <p>But not getting this </p>