Copy the code The code is as follows:
function list_files($dir)
{
if(is_dir($dir))
{
if($handle = opendir($dir))
{
while((( $file = readdir($handle)) !== false)
{
{
if($file != "." && $file != ".." && $file != "Thumbs.db")
{
echo ''.$file.'
'."n";
}
}
closedir($handle);
}
}
}
Collection of twenty-one practical and convenient PHP function codes
The above introduces the Hebei Province New Rural Cooperative Medical Care Reimbursement Drug Catalog PHP function code to loop through the catalog contents, including the Hebei Province New Rural Cooperative Medical Care Reimbursement Drug Catalog. I hope it will be helpful to friends who are interested in PHP tutorials.🎜