Ich habe ein Array in angularjs, Beispiel wie folgt.Wie Array mehrdimensional Winkel js
$scope.order.qty='20';
$scope.order.adress='Bekasi';
$scope.order.city='Bekasi';
Dieses Array mit diesem Code schreiben
$http({
method : 'POST',
url : '<?php echo base_url(); ?>add_order',
data : $scope.order,
headers : {'Content-Type': 'application/x-www-form-urlencoded'}
})
ich alle Variable mit
$_POST = json_decode(file_get_contents('php://input'), true);
$_POST['qty'];
$_POST['address'];
$_POST['city'];
Aber ich bin verwirrt, wenn Array mehrdimensional wie diese bekommen:
$scope.items[1].kode_produk='PR_1';
$scope.items[2].kode_produk='PR_2';
$scope.items[3].kode_produk='PR_3';
Wie posten und erhalten Vari fähig von Array multidimensional so?