Anonymous
public php v1 · immutable<?phpfunction replace_htm_with_html($path){ $files = scandir($path); foreach ($files as $file) { if (is_dir($file)) { replace_htm_with_html($file); } else { $file_array[] = array('name' => $file, 'newname' => substr($file, 0, strrpos($file, '.')), 'ext' => substr($file, strrpos($file, '.') + 1)); } }}?>