I was trying to create a loop for all the variables on a page to display in one while loop. I couldn't seem to get the variable to output. Here is the code I tried that made the most sense to me:
<?php
$varone = true;
$vartwo = 47;
$varthree = "A little string";
$vars = get_define_vars();
while($loop = $vars){
echo "variable ".$vars;
var_dump($vars;)
}
?>
It would crash one browser and the other it would stay blank. The reason I tried the code this way is because I thought of how I would word a mysql loop and I thought it would work in a similar way. Sorry if this is a newb question.
var_dump($vars;)<<<