title: php array's making the Undefined index: 0 notice go away
body: <p>Right so i have E_NOTICES on and my code works its just i keep getting "Severity: Notice Message: Undefined index: 0" everytime i try to insert my data into the array with the set key. Its really annoying when ur trying to debug. </p>
  
  <p>What am i doing wrong that will make the notices go away without turning off E_NOTICES?</p>
  
  <pre><code>foreach ($bracketmatches-&gt;result() as $row)
  {
    if(!isset($bracketdata[$row-&gt;position])) 
    {
      $bracketdata[$row-&gt;position] = array(); 
    }
    $bracketdata[$row-&gt;position] = array("home_name" =&gt; $teams[$row-&gt;home_id]['team_name']);
  }
  </code></pre>