title: how to include dynamically in php
body: <p>Hello I would like to include dynamically in php...</p>
  
  <p>where I could send as parameter the pages that I want, only pages and not the directory ...</p>
  
  <p>was trying as below but did not work:</p>
  
  <p>this is the Loadclassphp.php:</p>
  
  <pre><code>&lt;?php
  class Loadclass{
  public static function load($url)
  {   
  
          foreach($url as $b)
                  {
                 include "$b.php";
                  }
  
  
  } 
  }
  
  ?&gt;
  </code></pre>
  
  <p>and here is  where i call:</p>
  
  <pre><code>include_once 'Loadclassphp.php'; 
  $arr = array(1 =&gt; "menu",2 =&gt; "client");
  Loadclass::load($arr);
  </code></pre>
  
  <p>thanks for the help...</p>