foreach ($header as $i) {
$i += $i;
}
There are many problems in the above code. Other answers solve them, but without explanation, so you may find this helpful. For the purposes of this answer, I assume that it $headercontains array('a', 'b', 'c'), and that you intend to combine the values.
-, numeric add += .=. $i 0: $header , +=, , , 0.
-, .=, $i , . :
$i = 'a';
$i .= $i' // aa
:
$i = 'b';
$i .= $i;
. . , , $i , .
, , , (+=, .=, *= ..)). E_NOTICE error_reporting php.ini, .