Using the following code, I expect a comma delimited string from the implode:
$result = pg_exec($this->db, $sql);
$rows = pg_fetch_all($result);
$indexlistids = implode(", ", $rows);
echo $indexlistids."<br />";
But I get this:
Notice: Array to string conversion
and it echos Array
Got the same results using
$indexlistids = join(", ", $rows);
It looks correct, what exactly am I doing wrong here?