This line of code worked perfectly before I upgraded, now it doesn't:
123: $thisRow[] = displayR(${"sR{$i}S1"}, ${"nR{$i}S1P"});
I get this error:
Undefined variable: sR1S1 in script.php on line 123
A workaround is to manually assign them first
$s = ${"sR{$i}S1"};
$n = ${"nR{$i}S1P"};
$thisRow[] = displayR($s, $n);
Is there anyway to get it working in a single line as before? Does anyone know why it no longer works?
I should add that I've tried using
var_dump(${"sR{$i}S1"});on the previous line and it IS defined, and has the value that I expect it to.
I can't find any mention of this behaviour on google or SO, I wonder if it's a bug rather than intended.