title: Parse error: syntax error, unexpected '{' in PHP?
body: <p>So I got this error:</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\scanner\mine.php on line 112</p>
  </blockquote>
  
  <p>On this line:</p>
  
  <pre><code>if(preg_match("inurl:", $text) {
  </code></pre>
  
  <p>Its part of a "Clean" function:</p>
  
  <pre><code>  function Clean($text) {
          if(preg_match("inurl:", $text) {
              str_replace("inurl:", "", $text);
              return htmlspecialchars($text, ENT_QUOTES);
          } else {
              return htmlspecialchars($text, ENT_QUOTES);
          }
    }
  </code></pre>
  
  <p>How can I fix it?</p>