title: Using a variable in $html = file_get_html();
body: <p>i can't understand why variables are not working here. Here is the code:<br></p>
  
  <pre><code>include_once('../simple_html_dom.php');
  $url = htmlentities($_GET['q']);
  $urlall = str_replace(" ", "+", $url);
  $html = file_get_html('http://www.example.com/some?key=$urlall&amp;hl=en');
  echo $html-&gt;plaintext;
  </code></pre>
  
  <p>if you look at this code you will found <code>$urlall</code> variable which i have applied in the web address, but this variable can't extract its data. As a new PHP programmer can't understand what to do now to make it works.. Here i have used HTML DOM PARSER..Thanks</p>