i\'m confused about the php variable scope. such as:
while(true){ $var = \"yes , it is a test!\"; } printf($var)
the $var
$var
Loop does not have any scope in PHP. variable is simply available outside the loop.
just echo outside the loop;
echo
echo $var;