title: ( ! ) Parse error: syntax error, unexpected '[', expecting ')' in codeigniter
body: <pre><code>public function login($email,$password)
  {
      $query = $this-&gt;db-&gt;where(['email'=&gt;$email,'password'=&gt;$password])
                          -&gt;get('registration');
      if ($query-&gt;num_rows() &gt; 0) {
              return $query-&gt;row();
      }
  }
  </code></pre>
  
  <p>i am new in programming. There is syntax error . i couldn't understand the problem's solution</p>