2
How do I go through one Array where the index is a date that varies with each query in the Database.
Just a detail, the dates are dynamic at each consultation.
The Array arrives that way:
Array
(
[2018-04-07] => Array
(
[ConteudoId] => 28498
)
[2018-04-08] => Array
(
[ConteudoId] => 28498
)
[2018-05-05] => Array
(
[ConteudoId] => 28762
)
[2018-05-06] => Array
(
[ConteudoId] => 28762
)
[2018-06-16] => Array
(
[ConteudoId] => 28765
)
[2018-06-17] => Array
(
[ConteudoId] => 28765
)
[2018-07-06] => Array
(
[ConteudoId] => 28764
)
[2018-07-07] => Array
(
[ConteudoId] => 28764
)
)
foreach ($array as $data => $valor) { ... }
?– Woss
@Andersoncarloswoss Dates are dynamic
– Felipe Ribeiro
But it makes no difference.
– Woss
@Andersoncarloswoss and how I catch [Conteudoid]?
– Felipe Ribeiro