Mecha CMS

Deep learning on using the API.

Files

Bulk file instance from array.

2.2.0Anemon

$files = new Files([
    '.\path\to\file-1.txt',
    '.\path\to\file-2.txt',
    '.\path\to\file-3.txt',
    '.\path\to\file-4.txt',
]);

foreach ($files as $file) {
    echo $file->name . '<br>';
}