I do not understand why I can't echo out specific values out of my array..
I grab the $_POST output and save it to an array, filter the array to remove empty keys, display the array, that works all OK, then I try to specify a specific value and I get nothing.
echo "Post OrderArray<pre>";
print_r($_POST[order]);
echo "</pre>";
$order_list = $_POST[order];
$order_list = array_filter(array_map('array_filter', $order_list));
echo "order_list<pre>";
print_r($order_list);
echo "</pre>";
// try to output specific values
echo $order_list[0]['code'] . " _ " . $order_list[0]['qty'] . "<br />";
Post Order Array
Array
(
[0] => Array
(
['qty'] => 3
['code'] => 29468
)
[1] => Array
(
['qty'] =>
)
[2] => Array
(
['qty'] =>
)
[3] => Array
(
['qty'] =>
)
[4] => Array
(
['qty'] =>
)
)
Filtered Order_list Array
Array
(
[0] => Array
(
['qty'] => 3
['code'] => 29468
)
)
_
I think I should be getting "29468 _ 3" but I am not getting any values out of the array.