model view controller - Including an array of files in PHP -


What am I trying to do, in which the main PHP file contains all the php files in the given directory, I load them in an array like the globe ()

:

  // Get all the files $ files = glob (' *. Php ');   

But when I try to include ($ files) in I'm having an error saying that it does not like the array, Should I Use a Novel Statement? Or is there a better way to do this? $ Filename as

  foreach (globe ("* .php") {/ / Do stuff}    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -