$array[2] .= 'B';
This will append 'B' to the second line of the output file.
$array[2] is actually the third line of the file. Array indexes start at 0.
In reply to Re^2: write to/append a specific line in output file
by jwkrahn
in thread write to/append a specific line in output file
by aquinom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |