i'm sorry guys. i was half-joking, but i shouldn't have put it that way. i owe my life to this site and the help i get here. it was late and i've been working long hours. I had read the comments over and over and overand had some vague inkling of what it was doing, but the comments only seemed to tell half the story.🙁
I kinda half understand what it does i think.
The code is from phpBB. an array of variables was defined in $strip_var_list. I'm guessing the loop is kinda like saying
foreach($strip_var_list as $var=>$param) {
$$var = trim(htmlspecialchars($HTTP_POST_VARS[$param]));
}
if $strip_var_list has an assignment
$strip_var_list['email'] = 'email';
then the assignment would be
$email = trim(htmlspecialchars($HTTP_POST_VARS['email']));
is that right? if so, perhaps a better comment would be 'strip special html chars from certain variables and define them in the local script's scope'.
sorry about that. i really do appreciate your help.