title: remove line from array by key
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2448964/php-how-to-remove-specific-element-from-an-array">PHP: How to remove specific element from an array?</a>  </p>
  </blockquote>
  
  
  
  <p>How can i remove a line from an array where the key name = a given target...such as</p>
  
  <pre><code>[name] =&gt; super [price] =&gt; 65.87 [quantity] =&gt; 25 [addtocart] =&gt; 1
  </code></pre>
  
  <p>say i wanted to remove the <code>[addtocart] =&gt; 1</code> part</p>