title: Parse error: syntax error, unexpected ',', expecting variable (T_VARIABLE)
body: <p>I've got error on defined-function and from <code>error_reporting(E_ALL);</code></p>
  
  <p>There are errors <code>Parse error: syntax error, unexpected ',', expecting variable (T_VARIABLE) in C:\xampp\htdocs\bs4\func.php on line 4</code></p>
  
  <p>Here is my code </p>
  
  <pre><code>&lt;?php
  error_reporting(E_ALL);
  require_once "condb.php";
  function noproblem(time,suggest,phone,eat,problem){ // Here is line 4
  
    $sql="insert into data(time,suggest,phone,eat,problem) values(?,?,?,?,?)";
    $stmt=$cn-&gt;prepare($sql);
    $stmt-&gt;bindParam("1",time);
    $stmt-&gt;bindParam("2",suggest);
    $stmt-&gt;bindParam("3",phone);
    $stmt-&gt;bindParam("4",eat);
    $stmt-&gt;bindParam("5",problem);
  
    try {
      $stmt-&gt;execute();
      echo "ok!";
    } catch (Exception $e) {
      echo $e-&gt;getTraceAsString();
    }
  }
  ?&gt;
  </code></pre>