class Foo {
function doFoo() {
foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = $val;
print_r(isset($origSectionFromAssoc)); // PRINTS NULL
print_r("origSectionFromAssoc = $origSectionFromAssoc<P>"); // PRINTS "origSectionFromAssoc = "
print_r("<P>_REQUEST['origSectionFromAssoc'] = "); print_r($_REQUEST['origSectionFromAssoc']); print_r("<P>"); // PRINTS "_REQUEST['origSectionFromAsoc'] = person"
}
}
I have no explanation for this one!! PHP 4.3.2 and it appears that while the $_REQUEST collection exists with all values, you can't extract from it!
Help!
Thanx
Phil