note
ikegami
<p>foreach loops sets $_ to refer to the current value in the list which is being iterated. In this case, the list consists solely of $b.</p>
<p>Your expression is equivalent, but it's not an acceptable answer since the question was about removing the need for using $b twice.</p>
493501
493512