It seems that it should be (and probably) trivial. I have a simple query:
SELECT Name From User;
When I run a query using this code:
$rows = $preparedStatement->fetchAll(PDO::FETCH_ASSOC);
$ The lines are as follows:
Array ( [0] => Array ( [Name] => Doug ) [1] => Array ( [Name] => John ) )
Is there an easy way to make the array look something like this:
Array( Doug, John)
source share