Add Sequence To End of String in Foreach
<p>Chances are there is a very simple solution to my problem and I'm over looking it. Basically I'm outputting data to a CSV file and trying to make my columns register based off the data in each row using a foreach loop to determine if there is data. <strong>That works!</strong> My issue however is that I want to add a '1' or '2' or '3' etc... depending on what column I'm on in my foreach loop. </p>

<pre><code>    foreach ($data as $fields)
    {
        $columnHeadings[] = 'Column #';
    }
</code></pre>

<p>My problem, is quite literally that simple. </p>