My PDO query of the database returns unnecessary values into the array.
Array
(
[contentID] => 9
[0] => 9
[type] => operations
[1] => operations
[type_alts] => pages
[2] => pages
[url] => ctt-partners
[3] => ctt-partners
[title] => CTT Partners
[4] => CTT Partners
[subtitle] =>
[5] =>
[online] => 1
[6] => 1
[access] => 0
[7] => 0
[req] => 0
[8] => 0
)
I am after the array not returning the identical integer fields as well as the names. For example [0] => 9, [1] => operations
. I don't want these as well.
Why are they here and how can I get rid of them.
Thanks,