title: Where is the error in my code? syntax error, unexpected token "," (PHP)
body: <p>I am a total beginner on PHP so that is why I can't find what the error is... it seems very simple but I can't find it, this is the part of my code that is giving me trouble:</p>
  <pre><code>function invalidRUT($username) {
  $result;
  if (!preg_match(&quot;/^[0-9]*$/&quot;), $username) {
      $result = true;
  }
  else {
      $result = false;
  }
  return $result;
  }
  </code></pre>
  <p>And the error message is:
  syntax error, unexpected token &quot;,&quot; (lin 15, col.5)</p>