title: Remove a value from Session array
body: <p>How can i remove a value from session array using a removing link in table. </p>
  
  <p>// in File A</p>
  
  <pre><code>&lt; ?php
  $_SESSION['cart']['prices'][] = "1000";
  $_SESSION['cart']['services'][] = "game 1";
  $_SESSION['cart']['prices'][] = "2000";
  $_SESSION['cart']['services'][] = "game 2";
  $_SESSION['cart']['prices'][] = "3000";
  $_SESSION['cart']['services'][] = "game 3";
  $_SESSION['cart']['prices'][] = "4000";
  $_SESSION['cart']['services'][] = "game 4";
  ?&gt;
  </code></pre>
  
  <p>// in file B</p>
  
  <pre><code>&lt; table border="1"&gt;
  &lt; thead&gt;
  &lt; th style="width: 450px; text-align:center;"&gt;Services&lt; /th&gt;
  &lt; th style="width: 450px; text-align:center;"&gt;Price&lt; /th&gt;
  &lt; th style="width: 450px; text-align:center;"&gt;Delete item&lt; /th&gt;
  &lt; /thead&gt;
  &lt; tbody&gt;
  &lt; ?php
  foreach ($_SESSION['cart']['services'] as $key =&gt; $service) {
      echo "&lt; tr&gt;&lt; td&gt;".$service."&lt; /td&gt;&lt; td style='text-align:center;'&gt;".$_SESSION['cart']['prices'][$key]."&lt; /td&gt;&lt; td&gt;ckick to remove&lt; /td&gt;&lt; /tr&gt;";
  }
  ?&gt;
  &lt; /tbody&gt;
  &lt; /table&gt;
  </code></pre>