function getDirContent($path){
$arr = array();
$data = scandir($path);
foreach ($data as $value){
if($value != '.' && $value != '..'){
$arr[] = $value;
}
}
return $arr;
}
function getDirContent($path){
$dirs = array();
$files=[];
$data = scandir($path);
foreach ($data as $value){
$sub_path =$path .'/'.$value;
if($value == '.'|| $value == '..')
continue;
if(is_dir($sub_path)){
$dirs[] = $value;
}else
$files[]=$value;
}
return [$dirs,$files];
}