- var_dump: documentation ( source)
- array_filter: documentation ( source)
- strtolower: documentation ( source)
<?php
$files1 = array('AAA', 'BBB', 'CcC');
$files2 = array_filter($files1, function ( &$path ) {
$path = strtolower($path);
return true;
});
var_dump($files1, $files2);