title: Cannot use [] for reading
body: <p>In one of my scripts, I try to do the following</p>
  
  <pre><code>$data[] = self::get($row['sr_id']); // &lt;-- line 55
  </code></pre>
  
  <p>However, PHP does not allow me to do this, giving me this <strong>error</strong></p>
  
  <blockquote>
    <p>Fatal error: Cannot use [] for reading in /file.php on line 55</p>
  </blockquote>
  
  <p>The <code>self::get</code> function return either a bool, or an object.</p>
  
  <p><strong>Edit:</strong> The get function creates a new object which again loads data from a mysql database.</p>