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