- print_r: documentation ( source)
- array_filter: documentation ( source)
- strtolower: documentation ( source)
<?php
$files = array('Ablah', 'Bblah');
$files = array_filter($files, function ( &$path ) {
$path = strtolower($path); // Drivers should be lowercase
return true;
});
print_r($files);