CI_Cart::get_item PHP Method

get_item() public method

Returns the details of a specific item in the cart
public get_item ( string $row_id ) : array
$row_id string
return array
    public function get_item($row_id)
    {
        return (in_array($row_id, array('total_items', 'cart_total'), TRUE) or !isset($this->_cart_contents[$row_id])) ? FALSE : $this->_cart_contents[$row_id];
    }