I have an embarrassingly easy PHP question. I have the following line
of code:
$n *= $s = count($data[$i]);
Where $data is an array and $n and $s are scalars.
I'm familiar with the '*=' operator:
$n = $n * $s
But I'm not sure what the second '=' is doing.
Thanks,
R.D.
of code:
$n *= $s = count($data[$i]);
Where $data is an array and $n and $s are scalars.
I'm familiar with the '*=' operator:
$n = $n * $s
But I'm not sure what the second '=' is doing.
Thanks,
R.D.
Comment