title: Parse Error: unexpected T_DOUBLE_ARROW => foreach array assignment
body: <p>I am trying to create an associative array that collects the following (existing on the db) information using this code:</p>
  
  <pre><code>$pro_xp = array();//array declaration
  foreach ($profile_professional_experiences as $each_professional_experience) {
          $pro_xp[] = ('title' =&gt; $each_professional_experience-&gt;title,
                       'company' =&gt; $each_professional_experience-&gt;company,
                       'industry' =&gt; $eachprofessional_experience-&gt;industry,
                       'time_period' =&gt; $each_professional_experience-&gt;time_period,
                       'duration' =&gt; $each_professional_experience-&gt;duration);}
  </code></pre>
  
  <p>This current code wins me a Parse Error message, which is not productive for me.  I have seen other assignment questions, but none like this. I'm still new to PHP development, so if this is a rookie mistake, that would be why.</p>