title: can anyone help me to solve the error::: Parse error: syntax error, unexpected T_FUNCTION in /localhost/braintree/app.php on line 14
body: <pre><code>&lt;?php
  
  require_once 'braintree-php-2.14.0/lib/Braintree.php';
  require_once __DIR__ . 'silex/vendor/autoload.php';
  Braintree_Configuration::environment('sandbox');
  Braintree_Configuration::merchantId('...');
  Braintree_Configuration::publicKey('...');
  Braintree_Configuration::privateKey('...');
  $app = new Silex\Application();
  $app-&gt;get('/', function () {
      include 'views/form.php';
  });
  $app-&gt;run();
  //$app-&gt;get("/braintree-php-2.14.0", function () {
  $app-&gt;get("/braintree", function () {
     include 'views/response.php';
  });
  ?&gt;
  </code></pre>
  
  <p>this is braintree payments system i read the documentation clearly but not solved.error is found in this line 14:   $app->get("/braintree", function () {</p>