I imagine you have structured this way:
$ clie is an array of client properties and
cart_item is the customer's cart
Within cart_item you have the items ($ k) and the amounts ($ v)
and what you want is to eliminate or change articles and their respective quantities ...
If so, you need to change the values by reference or create a new array ... example:
$cart = $_SESSION[$clie]['cart_item'];
foreach($cart as $item => $valor){
// Cambiar valor
$cart[$item] = 'Nuevo valor';
// O si deseas eliminar un item
unset($cart[$item]);
// Tambien por referencia
unset(&$item);
}
The amperstamp makes the reference to the variable, give it a studied parameter by reference and value.
There are functions like array_key_exists () or array_search () , etc. ... to manipulate the ARRAY, here the documentation of the: PHP array functions
What if you need to explain more detailed, because we do not know what changes you want to make.