Hi I'm using Closure Compiler to compress and join a few JavaScript files the syntax is something like this;
$c = new PhpClosure();
$c->add("JavaScriptA.js")
->add("JavaScriptB.js")
->write();
How could I make it systematically add more files from an array lets say for each array element in $file = array('JavaScriptA.js','JavaScriptB.js','JavaScriptC.js',..) it would execute the following code
$c = new PhpClosure();
$c->add("JavaScriptA.js")
->add("JavaScriptB.js")
->add("JavaScriptC.js")
->add
...
->write();
Thank you so much in advance!