first is set to true if the current foreach iteration is the first one. 当前 foreach 循环第一次执行时 first 被设置成 true.