Notice: array to string conversion in line
<p>I have a problem getting to echo some data from my database: I have tried several things but it just won't work.</p>

<p>Here is my code:</p>

<pre><code>$dbobject = new Company();
$where = "ID=1";
if (isset($_GET['pageno'])) {
    $dbobject-&gt;setPageno($_GET['pageno']);
}
$data = $dbobject-&gt;getData($where);
echo implode(' ',array_values($data));
</code></pre>

<p>I have tried the following also:</p>

<pre><code>foreach ($data as $value){
    echo $value;
}
</code></pre>

<p>and</p>

<pre><code>echo implode(" ",$data);
</code></pre>

<p>I know the data is there because I can get it with <code>print_r</code>.</p>
