Sometimes it is convenient to be able to have variable variable names.
That is, a variable name which can be set and used dynamically.
Suppose a form is posted with element name s1, s2 ..... s17, then you
can view it through for loop using following code:
for($i=1;$i<17;$i++){
$n = ${"s".$i};
if($n) echo $n."<br>";
}
Please rate this php snippet.