PHP While loop for Select Query
<p>Can anyone explain me how to get the final value assigned to variable after completing executing while loop?</p>

<p>In my below code I wanted to echo the response out of while loop after fetching all the values from the rows.</p>

<p>Because if I put echo out of while loop it only shows 1st record.</p>

<pre><code>while ($row = oci_fetch_array($array)) {
    $response = $row['0']-&gt;load();
    echo $response;
}
</code></pre>