title: Symfony DomCrawler
body: <p>I use DomCrawler in Symfony.</p>
  
  <pre><code>$variable = 'value';
  $crawler-&gt;filter('table &gt; tr')-&gt;each(
      function ($node, $i) {
          // $variable;
      }
  );
  </code></pre>
  
  <p>I try to access the variable inside the function but I get the error: Undefined variable.</p>
  
  <p>How can I call this variable inside the function?</p>