Using if with array and adding additional area
<pre><code> $contactData = array(
        'firstname'             =&gt;  $fname,
        'lastname'              =&gt;  $lname,
    );
</code></pre>

<p>I fill out my array with the information that I send from my html form with that code. I`m trying to add if so I can add additional information with it like;</p>

<pre><code> $contactData = array(
        'firstname'             =&gt;  $fname,
        'lastname'              =&gt;  $lname,
    );

 if ($i='5') {$contactData = array('what' =&gt; 'info');}
</code></pre>

<p>it probably won't work like this but I don`t know how can I get it working either. Anybody can help me with this ?</p>
