title: Why am I getting an unexpected T_NEW error in PHP?
body: <p>I created a user model in Code Igniter.</p>
  
  <pre><code>class User extends CI_Model {
      function __construct() {
          parent::__construct();
      }
  
      public function new($username, $email, $password, $studentID="") {
          $this-&gt;db-&gt;query("INSERT INTO user VALUES (0, '$username', '$email', '$password', '$studentID')");
      }
  }
  </code></pre>
  
  <p>However, I am getting this PHP error.</p>
  
  <pre><code>Parse error: syntax error, unexpected T_NEW, expecting T_STRING in /home/davidfaux/testApp/application/models/user.php on line 12
  </code></pre>
  
  <p>Line 12, by the way, is this line.</p>
  
  <pre><code>public function new($username, $email, $password, $studentID="") {
  </code></pre>
  
  <p>What is a T_NEW? Why am I getting the error?</p>