title: How to include a php and then remove it?
body: <p>Well, I don't know if this post have the correct title. Feel free to change it.</p>
  
  <p>Ok, this is my scenario:  </p>
  
  <p><strong>pluginA.php</strong></p>
  
  <pre><code>function info(){
     return "Plugin A";
  }
  </code></pre>
  
  <p><strong>pluginB.php</strong></p>
  
  <pre><code>function info(){
     return "Plugin B";
  }
  </code></pre>
  
  <p>Finally, I have a plugin manager that is in charge of import all plugins info to pool array:<br>
  <strong>Manager.php</strong></p>
  
  <pre><code>class Manager
  {
      protected $pool;
  
      public function loadPluginsInfo()
      {
          $plugin_names = array("pluginA.php", "pluginB.php");
  
          foreach ($plugin_names as $name) 
          {
              include_once $name;
              $this-&gt;pool[] = info(); 
          }
      }
  }
  </code></pre>
  
  <p>The problem here is that when I print pool array it only show me the info on the first plugin loaded. I supposed that the file inclusing override the info because it still calling the info() method from the first include.</p>
  
  <p>Is there a way to include the info  of both plugins having the info() function with the same name for all plugins files?</p>
  
  <p>Thank you in advance</p>
  
  <p>PS: a fatal cannot redeclare error is never hurled</p>