I'm using fetchAll (PDO :: FETCH_NAMED) to get the records from my database.
I received the following array
Array (
[0] => Array (
[idAgenda] => 2
[dataAgenda] => 1996-02-14
[localAgenda] => teste
[cidadeAgenda] => São Paulo
)
[1] => Array (
[idAgenda] => 1
[dataAgenda] => 1996-02-14
[localAgenda] => teste2
[cidadeAgenda] => Santos
)
)
I wanted to know how I get the data separately from this array?