Working with Angular 5.
What I am trying to do is to assign in array a multidimensional array.
What is working with PHP?
$arM = array();
$arM["20/02/2020"][1] = ["name"=> 'my name', "id"=> 1];
the output of this is:
Array
(
[20/02/2020] => Array
(
[1] => Array
(
[name] => my name
[id] => 1
)
)
)
In angular when I am doing this is not working. Example:
let data:any = [];
data["20/02/2020"][1] = myArray;
How can I achieve the same result of PHP's?