How can i remove a line from an array where the key name = a given target...such as
[name] => super [price] => 65.87 [quantity] => 25 [addtocart] => 1
say i wanted to remove the [addtocart] => 1
part
How can i remove a line from an array where the key name = a given target...such as
[name] => super [price] => 65.87 [quantity] => 25 [addtocart] => 1
say i wanted to remove the [addtocart] => 1
part
$vars = array('name' => super, 'price' => 65.87, 'quantity' => 25, 'addtocart' => 1);
unset($vars['addtocart']);