I have a multidimensional array with 3 columns, and a number of rows. Some of these rows have a field/value returning $row['value'][$i] == on (from a form checkbox field).
$product_arr = array();
foreach ($_POST['sent'] as $i=>$value) {
$product_arr[$i]['quantity'] = $value;
$product_arr[$i]['name'] = $_POST['name'][$value];
$product_arr[$i]['price'] = $_POST['price'][$value];
}
If I have four rows with $_POST['sent'] turned on, I will be left with an array with only four rows, even though the array originally has 10 rows. However, I am left with the first four rows, not the distinct four rows that I would like to process.
If anyone can offer suggestions to how I can remove the entire row if it has a $_POST['sent'] in it, I would be grateful!