Code
$arr112345 ];$arr2'a''b''c''d''e' ];$arr3 = [];foreach ($arr1as$v){ $v10; }foreach ($arr2as$k$v){ //举例$v$v$arr1$k ]; $arr3$k$v;}echo implode(', '$arr1"\n" . implode(', '$arr2"\n" . implode(', '$arr3);
Run
11121314, eea, b, c, d, ea11, b12, c13, d14, ee
Result
The problem occurs because after the end of the first cycle, $v
no release is made
Solve
This problem does not occur until the loop is passed and the unset()
variable is released.
Between two cycles, add unset ($v);
1112131415a, b, c, d, ea11, b12, c13, d14, e15
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above introduces the small problem caused by the array foreach, including the contents of the content, I hope that the PHP tutorial interested in a friend helpful.