function get_dir_all_files($path)
{
    $result=array();
    $temp=array();
        
    if(filetype($path)=='dir')
    {
        $dir=scandir($path);
        foreach($dir as $value)
        {
            if($value!='.'&&$value!='..')
            {
                if(filetype("$path/$value")!='dir')
                {
                    $result[]="$path/$value";                    
                }else
                {
                    $temp=array_merge($temp,get_dir_all_files("$path/$value"));
                }        
            }
        }
    }
    return array_merge($result,$temp);;
}
 

 

相关文章:

  • 2022-12-23
  • 2021-07-04
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
猜你喜欢
  • 2021-09-11
  • 2022-12-23
  • 2021-08-01
  • 2021-09-11
  • 2021-12-23
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案