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 : But when I try to include ($ files) in globe ()
// Get all the files $ files = glob (' *. Php ');
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
Post a Comment