Answers for "Using a variable outside of the while loop (scope)"

PHP
0

Using a variable outside of the while loop (scope)

#How to use a variable outside of the while loop (scope)

#You could try to define the variable before the loop, e.g.

$report = "";
while ($row = mysql_fetch_array($result)) {
    $report .= $row["prevDOCid"];
}
echo $report;
Posted by: Guest on March-24-2021

Code answers related to "Using a variable outside of the while loop (scope)"

Browse Popular Code Answers by Language